947 {
951 {
954 break;
956 {
959 break;
960 }
963 break;
966 break;
967 default:
968 break;
969 }
970 }
T CalculatePct(T base, U pct)
Definition: Util.h:61
std::int32_t int32
Definition: Define.h:103
@ SPELL_ABLUTION_MANA
Definition: spell_item.cpp:937
@ SPELL_ABLUTION_RUNIC
Definition: spell_item.cpp:936
@ SPELL_ABLUTION_ENERGY
Definition: spell_item.cpp:939
@ SPELL_ABLUTION_RAGE
Definition: spell_item.cpp:938
@ POWER_RAGE
Definition: SharedDefines.h:270
@ POWER_RUNIC_POWER
Definition: SharedDefines.h:275
@ POWER_ENERGY
Definition: SharedDefines.h:272
@ POWER_MANA
Definition: SharedDefines.h:269
@ SPELLVALUE_BASE_POINT0
Definition: SpellDefines.h:113
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
uint32 GetMaxPower(Powers power) const
Definition: Unit.h:1057
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167
Powers getPowerType() const
Definition: Unit.h:1052
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401