This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Read Synchrously | |
var fs = require("fs"); | |
function getRandomInt(max) { | |
return Math.floor(Math.random() * Math.floor(max)); | |
} | |
var map = fs.readFileSync("newworld1-1.json"); | |
var jsonMap = JSON.parse(map); | |
console.log("Output Content : \n"+ jsonMap.backgroundcolor); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/WorldHandlers/Spell.cpp b/src/game/WorldHandlers/Spell.cpp | |
index 28b2eab..c5a3e1e 100644 | |
--- a/src/game/WorldHandlers/Spell.cpp | |
+++ b/src/game/WorldHandlers/Spell.cpp | |
@@ -264,12 +264,25 @@ void SpellCastTargets::write(ByteBuffer& data) const | |
{ data << m_strTarget; } | |
} | |
+void Spell::ApplySpellInfoHotfixes() | |
+{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/Server/WorldSession.h b/src/game/Server/WorldSession.h | |
index 920096b..f763af8 100644 | |
--- a/src/game/Server/WorldSession.h | |
+++ b/src/game/Server/WorldSession.h | |
@@ -648,6 +648,8 @@ class WorldSession | |
void HandleResurrectResponseOpcode(WorldPacket& recvPacket); | |
void HandleSummonResponseOpcode(WorldPacket& recv_data); | |
+ bool IsDefaultChatChannel(const char* channelName); | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/WorldHandlers/SpellEffects.cpp b/src/game/WorldHandlers/SpellEffects.cpp | |
index 73b58bf..0ede320 100644 | |
--- a/src/game/WorldHandlers/SpellEffects.cpp | |
+++ b/src/game/WorldHandlers/SpellEffects.cpp | |
@@ -926,6 +926,39 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) | |
m_caster->CastCustomSpell(m_caster, 23783, &basepoints, NULL, NULL, true, NULL); | |
return; | |
} | |
+ case 24531: // Refocus | |
+ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/WorldHandlers/Spell.cpp b/src/game/WorldHandlers/Spell.cpp | |
index 28b2eab..d429f0c 100644 | |
--- a/src/game/WorldHandlers/Spell.cpp | |
+++ b/src/game/WorldHandlers/Spell.cpp | |
@@ -3620,8 +3620,12 @@ void Spell::SendInterrupted(SpellCastResult result) | |
void Spell::SendChannelUpdate(uint32 time) | |
{ | |
+ if (time != 0 && CheckChannelInterrupt()) | |
+ cancel(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/WorldHandlers/Spell.cpp b/src/game/WorldHandlers/Spell.cpp | |
index 28b2eab..7b8ecce 100644 | |
--- a/src/game/WorldHandlers/Spell.cpp | |
+++ b/src/game/WorldHandlers/Spell.cpp | |
@@ -1260,7 +1260,7 @@ void Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool isReflected) | |
if (IsSpellAppliesAura(m_spellInfo, effectMask)) | |
{ | |
- m_spellAuraHolder = CreateSpellAuraHolder(m_spellInfo, unit, realCaster, m_CastItem); | |
+ m_spellAuraHolder = CreateSpellAuraHolder(m_spellInfo, unit, realCaster, m_CastItem, this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp | |
index 7bc1c3b..3a69cdc 100644 | |
--- a/src/game/Object/Player.cpp | |
+++ b/src/game/Object/Player.cpp | |
@@ -5688,10 +5688,10 @@ void Player::SendMessageToSetInRange(WorldPacket* data, float dist, bool self) c | |
{ GetSession()->SendPacket(data); } | |
} | |
-void Player::SendMessageToSetInRange(WorldPacket* data, float dist, bool self, bool own_team_only) const | |
+void Player::SendMessageToSetInRange(WorldPacket* data, float dist, bool self, bool own_team_only, bool to_gm) const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/Object/SpellMgr.cpp b/src/game/Object/SpellMgr.cpp | |
index 48880cc..353ec8f 100644 | |
--- a/src/game/Object/SpellMgr.cpp | |
+++ b/src/game/Object/SpellMgr.cpp | |
@@ -47,6 +47,9 @@ bool IsPrimaryProfessionSkill(uint32 skill) | |
SpellMgr::SpellMgr() | |
{ | |
+ for (SkillRaceClassInfoEntry const* entry : sSkillRaceClassInfoStore) | |
+ if (sSkillLineStore.LookupEntry(entry->skillId)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp | |
index 6150dbb422..54bba5007e 100644 | |
--- a/src/server/game/Spells/Spell.cpp | |
+++ b/src/server/game/Spells/Spell.cpp | |
@@ -2262,6 +2262,16 @@ void Spell::AddDestTarget(SpellDestination const& dest, uint32 effIndex) | |
m_destTargets[effIndex] = dest; | |
} | |
+bool Spell::TargetInfo::MissedTarget(Spell *spell) | |
+{ |