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:
Chaplain
2011-10-12 01:11:52 +03:00
parent 44c55f78e0
commit 3e9611578c
4 changed files with 22 additions and 2 deletions
+1
View File
@@ -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
{