Core/Spells: Rename confusing SpellState enum values

Port From (https://github.com/TrinityCore/TrinityCore/commit/2e79d3524f12a525c337c5ce8d84b793cacd6e91)
This commit is contained in:
Hondacrx
2025-08-11 19:52:08 -04:00
parent ceb78e5914
commit 2c9db326f6
7 changed files with 31 additions and 36 deletions
+3 -3
View File
@@ -1750,13 +1750,13 @@ namespace Game.Entities
RemoveOwnedAura(pair);
}
// currently casted spells can be dependent from item
// currently cast spells can be dependent from item
for (CurrentSpellTypes i = 0; i < CurrentSpellTypes.Max; ++i)
{
Spell spell = GetCurrentSpell(i);
if (spell != null)
if (spell.GetState() != SpellState.Delayed && !HasItemFitToSpellRequirements(spell.m_spellInfo, pItem))
InterruptSpell(i);
if (!HasItemFitToSpellRequirements(spell.m_spellInfo, pItem))
InterruptSpell(i, false);
}
}