660 {
661 auto chance = 20;
664 {
665 return false;
666 }
667
669 {
671 {
672 return false;
673 }
674 }
675
677 {
679 {
680 chance += aurEff->GetAmount();
681 }
682 }
683
685 }
bool roll_chance_i(int chance)
Definition: Random.h:59
@ SPELL_SHAMAN_BLESSING_OF_THE_ETERNALS_R1
Definition: spell_shaman.cpp:60
@ SPELL_SHAMAN_EARTH_SHIELD_HEAL
Definition: spell_shaman.cpp:37
@ EFFECT_1
Definition: SharedDefines.h:32
@ AURA_STATE_HEALTHLESS_35_PERCENT
Definition: SharedDefines.h:1305
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
SpellInfo const * GetSpellInfo() const
Definition: Unit.cpp:184
Unit * GetActor()
Definition: Unit.h:439
Unit * GetProcTarget() const
Definition: Unit.h:441
bool HasAuraState(AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const
Definition: Unit.cpp:10547
AuraEffect * GetAuraEffectOfRankedSpell(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5508
Definition: SpellAuraEffects.h:39
Definition: SpellInfo.h:316