If stealth-only spell fails, shouldn't remove you from stealth. Fix by lol584. Closes issue #99.

--HG--
branch : trunk
This commit is contained in:
p0wer
2010-03-02 20:54:27 -06:00
parent 7f5a4feba7
commit 9bb97dd51e

View File

@@ -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);