From ee0c30a968142f940faf64c081babfaae2f4dd18 Mon Sep 17 00:00:00 2001 From: ModoX Date: Thu, 5 Feb 2026 12:49:31 +0100 Subject: [PATCH] Core/Spells: Make sure that spells with overridden duration but default duration 0 are not flagged immune --- src/server/game/Spells/Spell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 02d37a1638..912b9d4ee0 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -3201,7 +3201,10 @@ SpellMissInfo Spell::PreprocessSpellHit(Unit* unit, TargetInfo& hitInfo) } } - hitInfo.AuraDuration = Aura::CalcMaxDuration(m_spellInfo, origCaster, &m_powerCost); + if (m_spellValue->Duration) + hitInfo.AuraDuration = *m_spellValue->Duration; + else + 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, hitInfo.AuraDuration, origCaster, diminishLevel))