mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
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)
|
||||
{
|
||||
if(m_targets.getUnitTarget() && !m_targets.getUnitTarget()->isVisibleForOrDetect(m_caster, true))
|
||||
{
|
||||
cancel();
|
||||
return;
|
||||
}
|
||||
SetExecutedCurrently(true);
|
||||
|
||||
uint8 castResult = 0;
|
||||
|
||||
Reference in New Issue
Block a user