Entities/Unit: Fix an issue where Unit pointers could be left dangling if a channeled Charm was interrupted by a control aura application.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d10554da14fb8371072567f673c9f919cbe6b929)
This commit is contained in:
@@ -1043,15 +1043,6 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void RemoveFromWorld()
|
||||
{
|
||||
if (!IsInWorld)
|
||||
return;
|
||||
|
||||
RemoveCharmedBy(null);
|
||||
base.RemoveFromWorld();
|
||||
}
|
||||
}
|
||||
|
||||
public class ForcedUnsummonDelayEvent : BasicEvent
|
||||
|
||||
Reference in New Issue
Block a user