Scripts/Spells: Remove manual damage adjustment from Arcane Barrage for scaling with arcane charges and use spell cast for mana energize

Port From (https://github.com/TrinityCore/TrinityCore/commit/331c7ec7c268d522ead3229247a4c37db4393226)
This commit is contained in:
hondacrx
2021-05-17 14:35:50 -04:00
parent 3df467e345
commit 741bb1b84a
2 changed files with 26 additions and 35 deletions
-14
View File
@@ -186,20 +186,6 @@ namespace Game.Entities
int GetMinPower(PowerType power) { return power == PowerType.LunarPower ? -100 : 0; }
// Always return negative value for power reduction (or 0)
public int ConsumeAllPower(PowerType power)
{
int curPower = GetPower(power);
int minPower = GetMinPower(power);
if (curPower <= minPower)
return 0;
int diff = minPower - curPower;
SetPower(power, minPower);
return diff;
}
// returns negative amount on power reduction
public int ModifyPower(PowerType power, int dVal, bool withPowerUpdate = true)
{