diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 88bee994820..cb67391dcbf 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2238,13 +2238,13 @@ void Spell::cancel() void Spell::cast(bool skipCheck) { - if(m_targets.getUnitTarget() && !m_targets.getUnitTarget()->isVisibleForOrDetect(m_caster, true)) + if(m_targets.getUnitTarget() && m_targets.getUnitTarget()->isAlive() && !m_targets.getUnitTarget()->isVisibleForOrDetect(m_caster, true)) { cancel(); return; } - SetExecutedCurrently(true); + SetExecutedCurrently(true); uint8 castResult = 0; // update pointers base at GUIDs to prevent access to non-existed already object |