Core/Units: Added helper methods to cancel mount/shapeshift auras
Port From (https://github.com/TrinityCore/TrinityCore/commit/0b16756172b2c3cc78b0861af86b93daae60edda)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user