mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user