mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
refactor(Core/Spells): Add helpers for HasAuraType (#20802)
This commit is contained in:
@@ -1373,7 +1373,7 @@ class spell_dk_death_grip : public SpellScript
|
||||
float casterZ = GetCaster()->GetPositionZ(); // for Ring of Valor
|
||||
WorldLocation gripPos = *GetExplTargetDest();
|
||||
if (Unit* target = GetHitUnit())
|
||||
if (!target->HasAuraType(SPELL_AURA_DEFLECT_SPELLS) || target->HasUnitState(UNIT_STATE_STUNNED)) // Deterrence
|
||||
if (!target->HasDetectSpellsAura() || target->HasUnitState(UNIT_STATE_STUNNED)) // Deterrence
|
||||
{
|
||||
if (target != GetCaster())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user