946 {
950 {
953 break;
955 {
958 break;
959 }
962 break;
965 break;
966 default:
967 break;
968 }
969 }
T CalculatePct(T base, U pct)
Definition: Util.h:61
std::int32_t int32
Definition: Define.h:103
@ SPELLVALUE_BASE_POINT0
Definition: SpellDefines.h:114
@ SPELL_ABLUTION_MANA
Definition: spell_item.cpp:936
@ SPELL_ABLUTION_RUNIC
Definition: spell_item.cpp:935
@ SPELL_ABLUTION_ENERGY
Definition: spell_item.cpp:938
@ SPELL_ABLUTION_RAGE
Definition: spell_item.cpp:937
@ 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
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:1225
uint32 GetMaxPower(Powers power) const
Definition: Unit.h:892
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:1168
Powers getPowerType() const
Definition: Unit.h:888
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401