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')
This commit is contained in:
1 parent
73df8f8381
commit
f79e7d7640
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user