Implement aura use in new version of racial trait 20550. Add unit stat mods for rune/runic powers.

Last change will also prevent corruption armor and holy resistence values.
This commit is contained in:
VladimirMangos 2008-12-04 05:53:02 +03:00
parent a2503162fc
commit e58df484a2
5 changed files with 31 additions and 20 deletions

View file

@ -849,6 +849,7 @@ void Pet::UpdateMaxHealth()
void Pet::UpdateMaxPower(Powers power)
{
UnitMods unitMod = UnitMods(UNIT_MOD_POWER_START + power);
float addValue = (power == POWER_MANA) ? GetStat(STAT_INTELLECT) - GetCreateStat(STAT_INTELLECT) : 0.0f;
float value = GetModifierValue(unitMod, BASE_VALUE) + GetCreatePowers(power);