622{
623
624 float bonus = 0.8068f;
625
626
629
631
632
633
636
637 amount +=
int32(bonus);
638
639
641 AddPct(amount, twinDisciplines->GetAmount());
642
643
645 AddPct(amount, healModifier);
646
647
649 {
650 AddPct(amount, arenaDampening->GetAmount());
651 }
652
654 {
655 AddPct(amount, bgDampening->GetAmount());
656 }
657
658 return amount;
659};
T AddPct(T &base, U pct)
Definition: Util.h:67
T CalculatePct(T base, U pct)
Definition: Util.h:61
std::int32_t int32
Definition: Define.h:103
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_0
Definition: SharedDefines.h:31
@ SPELLFAMILY_PRIEST
Definition: SharedDefines.h:3534
@ SPELL_AURA_ADD_PCT_MODIFIER
Definition: SpellAuraDefines.h:171
@ SPELL_AURA_MOD_HEALING_DONE_PERCENT
Definition: SpellAuraDefines.h:199
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
int32 SpellBaseHealingBonusDone(SpellSchoolMask schoolMask)
Definition: Unit.cpp:12702
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5494
float ApplyEffectModifiers(SpellInfo const *spellProto, uint8 effect_index, float value) const
Definition: Unit.cpp:14829
int32 GetMaxPositiveAuraModifier(AuraType auratype)
Definition: Unit.cpp:5935
AuraEffect * GetDummyAuraEffect(SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
Definition: Unit.h:1358
float CalculateLevelPenalty(SpellInfo const *spellProto) const
Definition: Unit.cpp:3040
Definition: SpellAuraEffects.h:39
uint32 GetEffIndex() const
Definition: SpellAuraEffects.h:56