Core/Spells: SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT improvement
*Now it'll correctly increase\decrease % of power *Added helper function for modify power with percent ammount
This commit is contained in:
@@ -1371,6 +1371,7 @@ class Unit : public WorldObject
|
||||
void SetMaxPower(Powers power, uint32 val);
|
||||
// returns the change in power
|
||||
int32 ModifyPower(Powers power, int32 val);
|
||||
int32 ModifyPowerPct(Powers power, float pct, bool apply = true);
|
||||
|
||||
uint32 GetAttackTime(WeaponAttackType att) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user