Core/Units: Added helper methods to cancel mount/shapeshift auras

Port From (https://github.com/TrinityCore/TrinityCore/commit/0b16756172b2c3cc78b0861af86b93daae60edda)
This commit is contained in:
Hondacrx
2025-05-19 17:42:40 -04:00
parent 3e0e2354b7
commit f62d303ec7
3 changed files with 58 additions and 2 deletions
+1 -1
View File
@@ -2024,7 +2024,7 @@ namespace Game.Entities
{
// use m_zoneUpdateId for speed: UpdateArea called from UpdateZone or instead UpdateZone in both cases m_zoneUpdateId up-to-date
if (pair.Value.GetSpellInfo().CheckLocation(GetMapId(), m_zoneUpdateId, newArea, this) != SpellCastResult.SpellCastOk)
RemoveOwnedAura(pair);
RemoveOwnedAura(pair, AuraRemoveMode.Interrupt);
}
// some auras applied at subzone enter