aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellHandler.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-06-09 19:33:38 +0200
committerQAston <none@none>2009-06-09 19:33:38 +0200
commit507b9fb0516dcde613af0f9d0276af8acbdcb585 (patch)
treeefb8106e14a483b3ff85368b1ec657ae64fae08d /src/game/SpellHandler.cpp
parent4a662071aa6902c9a6790c8d485b66040ae979a2 (diff)
*Fix Heart of the Pheonix
*Fix autoshoot rotation with steady shot. *Make Incanter's Absorption not interrupt other casts. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellHandler.cpp')
-rw-r--r--src/game/SpellHandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp
index 62056a6806f..b3655448a1a 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -333,6 +333,12 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket)
}
}
+ // Client is resending autoshot cast opcode when other spell is casted during shoot rotation
+ // Skip it to prevent "interrupt" message
+ if (IsAutoRepeatRangedSpell(spellInfo) && _player->m_currentSpells[CURRENT_AUTOREPEAT_SPELL]
+ && _player->m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->m_spellInfo == spellInfo)
+ return;
+
// can't use our own spells when we're in possession of another unit,
if(_player->isPossessing())
return;