From 2e4fae75a4f4f24dc2c97b8bde4870974c073aa9 Mon Sep 17 00:00:00 2001 From: krz Date: Sun, 7 Jun 2009 02:02:00 +0200 Subject: Fix the bug that players couldn't talk with Spirit Healer --HG-- branch : trunk --- src/game/Spell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3