aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrisjdc <trisjdc@gmail.com>2014-07-24 03:52:19 +0100
committerTrisjdc <trisjdc@gmail.com>2014-07-24 03:52:19 +0100
commitf79e7d764079e5ecdb479c30e35a21cf1c8e5e3c (patch)
tree5fdf07c8947ce3123b7162900408c18c7124f9bb /src
parent73df8f838157333a7efec55e4cd1bc88b1829845 (diff)
Core/Spells: Unrelenting Assault shouldn't proc if the target isn't explicitly casting (turns out that UNIT_STATE_CASTING even a instant cast has a 'cast time')
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_warrior.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp
index ac61577da5d..af2c541dbc4 100644
--- a/src/server/scripts/Spells/spell_warrior.cpp
+++ b/src/server/scripts/Spells/spell_warrior.cpp
@@ -501,7 +501,7 @@ class spell_warr_overpower : public SpellScriptLoader
return;
if (Player* target = GetHitPlayer())
- if (target->HasUnitState(UNIT_STATE_CASTING))
+ if (target->IsNonMeleeSpellCast(false, false, true)) // UNIT_STATE_CASTING should not be used here, it's present during a tick for instant casts
target->CastSpell(target, spellId, true);
}