From 9bb97dd51eb29d9faf7b59aaccaefd6a37c83fbb Mon Sep 17 00:00:00 2001 From: p0wer Date: Tue, 2 Mar 2010 20:54:27 -0600 Subject: If stealth-only spell fails, shouldn't remove you from stealth. Fix by lol584. Closes issue #99. --HG-- branch : trunk --- src/game/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3