Core/Auras: implement mana cost modification aura
Port From (https://github.com/TrinityCore/TrinityCore/commit/a76c08843fc1695241b7246c4014322ee07a6453)
This commit is contained in:
@@ -2773,9 +2773,6 @@ namespace Game.Spells
|
||||
flatMod += eff.GetAmount();
|
||||
}
|
||||
|
||||
if (power.PowerType == PowerType.Mana)
|
||||
flatMod *= (int)(1.0f + caster.m_unitData.ManaCostMultiplier); // this is wrong
|
||||
|
||||
powerCost += flatMod;
|
||||
}
|
||||
|
||||
@@ -2842,7 +2839,9 @@ namespace Game.Spells
|
||||
powerCost += MathFunctions.CalculatePct(powerCost, eff.GetAmount());
|
||||
}
|
||||
|
||||
if (power.PowerType == PowerType.Health)
|
||||
if (power.PowerType == PowerType.Mana)
|
||||
powerCost = (int)((float)powerCost * (1.0f + caster.m_unitData.ManaCostMultiplier));
|
||||
else if (power.PowerType == PowerType.Health)
|
||||
{
|
||||
healthCost += powerCost;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user