402 {
405 {
409
410
412 {
413 int32 ragesave = aurEff->GetSpellInfo()->Effects[
EFFECT_1].CalcValue() * 10;
414 newRage = std::max(newRage, ragesave);
415 }
416
418
420 rageUsed += aurEff->GetAmount() * 10;
421
424 }
425 }
std::int32_t int32
Definition: Define.h:103
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_WARRIOR_GLYPH_OF_EXECUTION
Definition: spell_warrior.cpp:45
@ SPELL_WARRIOR_EXECUTE
Definition: spell_warrior.cpp:44
@ WARRIOR_ICON_ID_SUDDEN_DEATH
Definition: spell_warrior.cpp:68
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_0
Definition: SharedDefines.h:31
@ POWER_RAGE
Definition: SharedDefines.h:270
@ SPELLFAMILY_GENERIC
Definition: SharedDefines.h:3528
SpellSchoolMask
Definition: SharedDefines.h:295
@ SPELL_AURA_PROC_TRIGGER_SPELL
Definition: SpellAuraDefines.h:105
@ BASE_ATTACK
Definition: Unit.h:209
float GetTotalAttackPowerValue(WeaponAttackType attType, Unit *pVictim=nullptr) const
Definition: Unit.cpp:15428
void SetPower(Powers power, uint32 val, bool withPowerUpdate=true, bool fromRegenerate=false)
Definition: Unit.cpp:15566
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
uint32 GetPower(Powers power) const
Definition: Unit.h:1056
Definition: SpellAuraEffects.h:39
Definition: SpellInfo.h:316
uint32 SchoolMask
Definition: SpellInfo.h:392
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition: SpellInfo.h:393
int32 CalcPowerCost(Unit const *caster, SpellSchoolMask schoolMask, Spell *spell=nullptr) const
Definition: SpellInfo.cpp:2401
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetOriginalCaster()
Definition: SpellScript.cpp:406
Unit * GetCaster()
Definition: SpellScript.cpp:401