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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user