fix(Scripts/Spells): Glyph of Felguard. (#12497)

* fix(Scripts/Spells): Glyph of Felguard.

Fixes #12432

* Update.
This commit is contained in:
UltraNix
2022-07-24 18:38:03 +02:00
committed by GitHub
parent f6385c5054
commit b81a14976c
3 changed files with 48 additions and 1 deletions

View File

@@ -1154,7 +1154,9 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
{
// xinef: Glyph of Felguard, so ugly im crying... no appropriate spell
if (AuraEffect* aurEff = owner->GetAuraEffectDummy(SPELL_GLYPH_OF_FELGUARD))
SetModifierValue(UNIT_MOD_ATTACK_POWER, TOTAL_PCT, 1.0f + float(aurEff->GetAmount() / 100.0f));
{
HandleStatModifier(UNIT_MOD_ATTACK_POWER, TOTAL_PCT, aurEff->GetAmount(), true);
}
break;
}