Core/Spells: Fixed spell duration scaling with combo points

Port From (https://github.com/TrinityCore/TrinityCore/commit/9e68fd1458551ab0f007b6044c9220da8f7d4199)
This commit is contained in:
hondacrx
2023-09-12 18:00:30 -04:00
parent 543411beec
commit 913cfa0fbd
7 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -2239,7 +2239,7 @@ namespace Game.Spells
}
}
hitInfo.AuraDuration = Aura.CalcMaxDuration(m_spellInfo, origCaster);
hitInfo.AuraDuration = Aura.CalcMaxDuration(m_spellInfo, origCaster, m_powerCost);
// unit is immune to aura if it was diminished to 0 duration
if (!hitInfo.Positive && !unit.ApplyDiminishingToDuration(m_spellInfo, ref hitInfo.AuraDuration, origCaster, diminishLevel))