fix(Core/Spells): Fix Avenging Wrath not greying out Divine Protection/Shield (#24778)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
parent
5e1fd50776
commit
b01e202244
2 changed files with 6 additions and 5 deletions
|
|
@ -3201,6 +3201,10 @@ void Spell::DoTriggersOnSpellHit(Unit* unit, uint8 effMask)
|
|||
/// @todo: move this code to scripts
|
||||
if (m_preCastSpell)
|
||||
{
|
||||
// Avenging Wrath - also apply Immune Shield Marker
|
||||
if (m_preCastSpell == 61987)
|
||||
m_caster->CastSpell(unit, 61988, true);
|
||||
|
||||
// Fearie Fire (Feral) - damage
|
||||
if (m_preCastSpell == 60089)
|
||||
m_caster->CastSpell(unit, m_preCastSpell, true);
|
||||
|
|
|
|||
|
|
@ -556,18 +556,15 @@ class spell_pal_avenging_wrath : public AuraScript
|
|||
});
|
||||
}
|
||||
|
||||
void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
|
||||
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
Unit* target = GetTarget();
|
||||
|
||||
if (AuraEffect const* sanctifiedWrathAurEff = target->GetAuraEffectOfRankedSpell(SPELL_PALADIN_SANCTIFIED_WRATH_TALENT_R1, EFFECT_2))
|
||||
{
|
||||
int32 basepoints = sanctifiedWrathAurEff->GetAmount();
|
||||
target->CastCustomSpell(target, SPELL_PALADIN_SANCTIFIED_WRATH, &basepoints, &basepoints, nullptr, true, nullptr, sanctifiedWrathAurEff);
|
||||
}
|
||||
|
||||
target->CastSpell(target, SPELL_PALADIN_AVENGING_WRATH_MARKER, true, nullptr, aurEff);
|
||||
// Blizz seems to just apply aura without bothering to cast
|
||||
target->AddAura(SPELL_PALADIN_IMMUNE_SHIELD_MARKER, target);
|
||||
}
|
||||
|
||||
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue