aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <none@none>2010-09-19 17:02:08 +0200
committerShauren <none@none>2010-09-19 17:02:08 +0200
commit639a90666439948b263d33f770eb9fffc7227161 (patch)
treebb2f9bb07e248e35e9c141ca1eab4d62f598e6c0
parent2983dab1cb1c4a586cf32a9d6c9f1518948727d6 (diff)
Core/Pets: Fixed range check for water elemental Freeze
Closes issue #3628. --HG-- branch : trunk
-rw-r--r--src/server/game/Server/Protocol/Handlers/PetHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/PetHandler.cpp b/src/server/game/Server/Protocol/Handlers/PetHandler.cpp
index cee3f417598..78694992bd4 100644
--- a/src/server/game/Server/Protocol/Handlers/PetHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/PetHandler.cpp
@@ -735,8 +735,8 @@ void WorldSession::HandlePetCastSpellOpcode(WorldPacket& recvPacket)
caster->clearUnitState(UNIT_STAT_FOLLOW);
- Spell *spell = new Spell(caster, spellInfo, spellId == 33395); // water elemental can cast freeze as triggered
- spell->m_cast_count = spellId == 33395 ? 0 : castCount; // probably pending spell cast
+ Spell *spell = new Spell(caster, spellInfo, false); // water elemental can cast freeze as triggered
+ spell->m_cast_count = castCount; // probably pending spell cast
spell->m_targets = targets;
// TODO: need to check victim?