diff options
author | Aqua Deus <95978183+aquadeus@users.noreply.github.com> | 2023-07-16 13:42:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-16 13:42:03 +0200 |
commit | 17252534a1886d91e8669237344af47ce8c9f9b9 (patch) | |
tree | 2a089943c995dddeb43005e59d0a147b2833d0b0 /src | |
parent | 1f8eddc4f0cf443c45a930bc919007541210984a (diff) |
Scripts/Spells: Update prismatic barrier script (#29147)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_mage.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp index a7f4c4422f8..54b5cc2393f 100644 --- a/src/server/scripts/Spells/spell_mage.cpp +++ b/src/server/scripts/Spells/spell_mage.cpp @@ -1232,11 +1232,16 @@ class spell_mage_prismatic_barrier : public AuraScript { PrepareAuraScript(spell_mage_prismatic_barrier); + bool Validate(SpellInfo const* spellInfo) override + { + return ValidateSpellEffect({ { spellInfo->Id, EFFECT_5 } }); + } + void CalculateAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& canBeRecalculated) { canBeRecalculated = false; if (Unit* caster = GetCaster()) - amount += int32(caster->SpellBaseHealingBonusDone(GetSpellInfo()->GetSchoolMask()) * 7.0f); + amount = int32(CalculatePct(caster->GetMaxHealth(), GetEffectInfo(EFFECT_5).CalcValue(caster))); } void Register() override |