mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
refactor(Core/Spells): Add helpers for HasAuraType (#20802)
This commit is contained in:
@@ -3498,7 +3498,7 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
|
||||
|
||||
// Glyph of Blood Strike
|
||||
if (m_caster->GetAuraEffect(59332, EFFECT_0))
|
||||
if (unitTarget->HasAuraType(SPELL_AURA_MOD_DECREASE_SPEED))
|
||||
if (unitTarget->HasDecreaseSpeedAura())
|
||||
AddPct(totalDamagePercentMod, 20.0f);
|
||||
break;
|
||||
}
|
||||
@@ -4199,7 +4199,7 @@ void Spell::EffectStuck(SpellEffIndex /*effIndex*/)
|
||||
// xinef: if player is dead - teleport to graveyard
|
||||
if (!target->IsAlive())
|
||||
{
|
||||
if (target->HasAuraType(SPELL_AURA_PREVENT_RESURRECTION))
|
||||
if (target->HasPreventResurectionAura())
|
||||
return;
|
||||
|
||||
// xinef: player is in corpse
|
||||
|
||||
Reference in New Issue
Block a user