Send interrupt message at spell cast end if target is not visible for caster.
--HG-- branch : trunk
This commit is contained in:
@@ -2238,6 +2238,11 @@ void Spell::cancel()
|
|||||||
|
|
||||||
void Spell::cast(bool skipCheck)
|
void Spell::cast(bool skipCheck)
|
||||||
{
|
{
|
||||||
|
if(m_targets.getUnitTarget() && !m_targets.getUnitTarget()->isVisibleForOrDetect(m_caster, true))
|
||||||
|
{
|
||||||
|
cancel();
|
||||||
|
return;
|
||||||
|
}
|
||||||
SetExecutedCurrently(true);
|
SetExecutedCurrently(true);
|
||||||
|
|
||||||
uint8 castResult = 0;
|
uint8 castResult = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user