Core/Spell: case TOTAL_PCT\BASE_PCT should be processed by multiplicative function not additive.

Also get ride of hack in Player::HandleBaseModValue now it's unnecessary.
Fixes: #855, multiplicative % count for normal school for aura 79 and may be others.
This commit is contained in:
Chaplain committed 2011-08-20 13:38:20 +03:00
1 parent 511db66297
commit 4b56226619
3 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -13348,7 +13348,7 @@ bool Unit::HandleStatModifier(UnitMods unitMod, UnitModifierType modifierType, f
break;
case BASE_PCT:
case TOTAL_PCT:
m_auraModifiersGroup[unitMod][modifierType] += (apply ? amount : -amount) / 100.0f;
ApplyPercentModFloatVar(m_auraModifiersGroup[unitMod][modifierType], amount, apply);
break;
default:
break;