1464 {
1466
1468 if (!healInfo)
1469 {
1470 return;
1471 }
1472
1474
1476 {
1477
1478 protEff->SetAmount(std::min<int32>(protEff->GetAmount() + absorb, 20000));
1479
1480
1481 protEff->GetBase()->RefreshDuration();
1482 }
1483 else
1485 }
T CalculatePct(T base, U pct)
Definition: Util.h:61
std::int32_t int32
Definition: Define.h:103
@ SPELL_PROTECTION_OF_ANCIENT_KINGS
Definition: spell_item.cpp:1446
@ SPELLVALUE_BASE_POINT0
Definition: SpellDefines.h:113
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:1224
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5494
Definition: SpellAuraEffects.h:39
void PreventDefaultAction()
Definition: SpellScript.cpp:985
Unit * GetTarget() const
Definition: SpellScript.cpp:1165