diff options
author | krz <none@none> | 2009-06-07 02:02:00 +0200 |
---|---|---|
committer | krz <none@none> | 2009-06-07 02:02:00 +0200 |
commit | 2e4fae75a4f4f24dc2c97b8bde4870974c073aa9 (patch) | |
tree | 907baead7712b1f7a16077990cfcc3ba6d9219eb /src | |
parent | 715f410fb7fdebe1c22401cb749ad57eae637040 (diff) |
Fix the bug that players couldn't talk with Spirit Healer
--HG--
branch : trunk
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 |