Core/Unit: Store charmer and charmed pointers on Unit directly, no more map lookups for Unit::GetCharmer and Unit::GetCharmed
Port From (https://github.com/TrinityCore/TrinityCore/commit/a5989dcee9150565e7f4b8e3f7a62a414a484a3f)
This commit is contained in:
@@ -73,6 +73,8 @@ namespace Game.Entities
|
||||
//Charm
|
||||
public List<Unit> m_Controlled = new();
|
||||
List<Player> m_sharedVision = new();
|
||||
Unit m_charmer; // Unit that is charming ME
|
||||
Unit m_charmed; // Unit that is being charmed BY ME
|
||||
CharmInfo m_charmInfo;
|
||||
protected bool m_ControlledByPlayer;
|
||||
public ObjectGuid LastCharmerGUID { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user