530 {
532 {
533 int32 baseAmount = amount;
535
536
537
538
542 AddPct(amount, glyphe->GetAmount());
543
544
545 if ((baseAmount = amount - baseAmount))
547 {
548 ApplyPct(baseAmount, aurEff->GetAmount());
549 amount += baseAmount;
550 }
551 }
552 }
T AddPct(T &base, U pct)
Definition: Util.h:67
T ApplyPct(T &base, U pct)
Definition: Util.h:73
std::int32_t int32
Definition: Define.h:103
@ HEAL
Definition: Unit.h:251
@ SPELL_AURA_ADD_PCT_MODIFIER
Definition: SpellAuraDefines.h:171
@ SPELL_SHAMAN_GLYPH_OF_EARTH_SHIELD
Definition: spell_shaman.cpp:43
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_0
Definition: SharedDefines.h:31
@ SPELLFAMILY_SHAMAN
Definition: SharedDefines.h:3539
Definition: SpellAuraEffects.h:39
SpellInfo const * GetSpellInfo() const
Definition: SpellScript.cpp:1005
Unit * GetCaster() const
Definition: SpellScript.cpp:1020
Unit * GetUnitOwner() const
Definition: SpellScript.cpp:1030