diff options
author | krz <none@none> | 2009-06-05 01:21:11 +0200 |
---|---|---|
committer | krz <none@none> | 2009-06-05 01:21:11 +0200 |
commit | 85b68d886aa5ebc92dbd28ad83f710c0fd655579 (patch) | |
tree | ba563451a9690cc9503bddf6472025a4b745bf0b /src | |
parent | 3578b8d596b1d20b44e9529c1e151ae4c41c6621 (diff) |
Send interrupt message at spell cast end if target is not visible for caster.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 82756ad118f..d8cf24c2933 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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; |