aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorp0wer <none@none>2010-03-02 20:54:27 -0600
committerp0wer <none@none>2010-03-02 20:54:27 -0600
commit9bb97dd51eb29d9faf7b59aaccaefd6a37c83fbb (patch)
tree2e0f0e77f0d08598379f39e883a90ad8f2e2be29 /src
parent7f5a4feba775f6e5b0b09d36064e7e6d0c153b9d (diff)
If stealth-only spell fails, shouldn't remove you from stealth. Fix by lol584. Closes issue #99.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index f4380197f5d..834e9c23b7f 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2826,7 +2826,7 @@ void Spell::cast(bool skipCheck)
if(!m_IsTriggeredSpell || !skipCheck)
{
SpellCastResult castResult = CheckCast(false);
- if(castResult != SPELL_CAST_OK)
+ if(castResult != SPELL_CAST_OK && !(m_spellInfo->Attributes & SPELL_ATTR_ONLY_STEALTHED))
{
SendCastResult(castResult);
SendInterrupted(0);