1463 {
1465
1467 if (!healInfo)
1468 {
1469 return;
1470 }
1471
1473
1475 {
1476
1477 protEff->SetAmount(std::min<int32>(protEff->GetAmount() + absorb, 20000));
1478
1479
1480 protEff->GetBase()->RefreshDuration();
1481 }
1482 else
1484 }
T CalculatePct(T base, U pct)
Definition: Util.h:61
std::int32_t int32
Definition: Define.h:103
@ SPELLVALUE_BASE_POINT0
Definition: SpellDefines.h:114
@ SPELL_PROTECTION_OF_ANCIENT_KINGS
Definition: spell_item.cpp:1445
uint32 GetHeal() const
Definition: Unit.h:412
HealInfo * GetHealInfo() const
Definition: Unit.h:450
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1225
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5465
Definition: SpellAuraEffects.h:39
void PreventDefaultAction()
Definition: SpellScript.cpp:985
Unit * GetTarget() const
Definition: SpellScript.cpp:1165