aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.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/Spell.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/Spell.cpp')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 8d9cf6e5265..7f84e3a1cac 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -4829,7 +4829,7 @@ SpellCastResult Spell::CheckCast(bool strict)
SpellCastResult Spell::CheckPetCast(Unit* target)
{
- if(!m_caster->isAlive())
+ if(!m_caster->isAlive() && !(m_spellInfo->Attributes & SPELL_ATTR_CASTABLE_WHILE_DEAD))
return SPELL_FAILED_CASTER_DEAD;
if(m_caster->hasUnitState(UNIT_STAT_CASTING) && !m_IsTriggeredSpell) //prevent spellcast interruption by another spellcast