aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Spell.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index db36eb30191..b8d3c5318aa 100755
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -4785,11 +4785,16 @@ SpellCastResult Spell::CheckCast(bool strict)
// TODO: using WorldSession::SendNotification is not blizzlike
if (Player* playerCaster = m_caster->ToPlayer())
{
- if (playerCaster->GetSession() && condInfo.mLastFailedCondition
+ if (playerCaster->GetSession()
&& condInfo.mLastFailedCondition->ErrorTextId)
+ {
playerCaster->GetSession()->SendNotification(condInfo.mLastFailedCondition->ErrorTextId);
+ return SPELL_FAILED_DONT_REPORT;
+ }
}
- return SPELL_FAILED_DONT_REPORT;
+ if (!condInfo.mLastFailedCondition->ConditionTarget)
+ return SPELL_FAILED_CASTER_AURASTATE;
+ return SPELL_FAILED_BAD_TARGETS;
}
}