Send interrupt message at spell cast end if target is not visible for caster.

--HG--
branch : trunk
This commit is contained in:
krz
2009-06-05 01:21:11 +02:00
parent 3578b8d596
commit 85b68d886a

View File

@@ -2238,6 +2238,11 @@ void Spell::cancel()
void Spell::cast(bool skipCheck)
{
if(m_targets.getUnitTarget() && !m_targets.getUnitTarget()->isVisibleForOrDetect(m_caster, true))
{
cancel();
return;
}
SetExecutedCurrently(true);
uint8 castResult = 0;