Core/Spells: Implemented evoker empower spell mechanic
Port From (https://github.com/TrinityCore/TrinityCore/commit/a39d0db9ec64f6bf38716abaade5b7835f2db338)
This commit is contained in:
@@ -764,9 +764,15 @@ namespace Game.Spells
|
||||
maxDuration = -1;
|
||||
|
||||
// IsPermanent() checks max duration (which we are supposed to calculate here)
|
||||
if (maxDuration != -1 && modOwner != null)
|
||||
modOwner.ApplySpellMod(spellInfo, SpellModOp.Duration, ref maxDuration);
|
||||
if (maxDuration != -1)
|
||||
{
|
||||
|
||||
if (modOwner != null)
|
||||
modOwner.ApplySpellMod(spellInfo, SpellModOp.Duration, ref maxDuration);
|
||||
|
||||
if (spellInfo.IsEmpowerSpell())
|
||||
maxDuration += (int)SpellConst.EmpowerHoldTimeAtMax;
|
||||
}
|
||||
return maxDuration;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user