518 {
521 {
522 int32 chance = talentAurEff->GetSpellInfo()->Effects[
EFFECT_1].CalcValue();
523
525 {
528 absorbAmount = 0;
529
530
532 Trigger(aurEff, dmgInfo, damage);
533
534
537
539 }
540 }
541 }
bool roll_chance_i(int chance)
Definition: Random.h:59
std::int32_t int32
Definition: Define.h:103
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_MAGE_FROST_WARDING_R1
Definition: spell_mage.cpp:42
@ SPELL_MAGE_FROST_WARDING_TRIGGERED
Definition: spell_mage.cpp:43
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_0
Definition: SharedDefines.h:31
void AbsorbDamage(uint32 amount)
Definition: Unit.cpp:151
SpellInfo const * GetSpellInfo() const
Definition: Unit.h:360
uint32 GetDamage() const
Definition: Unit.h:364
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 * GetAuraEffectOfRankedSpell(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:5508
Definition: SpellAuraEffects.h:39
uint32 SpellIconID
Definition: SpellInfo.h:380
void PreventDefaultAction()
Definition: SpellScript.cpp:985
Unit * GetTarget() const
Definition: SpellScript.cpp:1165
void Trigger(AuraEffect *aurEff, DamageInfo &, uint32 &absorbAmount)
Definition: spell_mage.cpp:414