mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10749] Convert Gameobject owner to objectguid use.
This commit is contained in:
parent
f5cf98e9f4
commit
6154cb3b43
13 changed files with 40 additions and 32 deletions
|
|
@ -2073,7 +2073,7 @@ bool WorldObject::IsControlledByPlayer() const
|
|||
switch (GetTypeId())
|
||||
{
|
||||
case TYPEID_GAMEOBJECT:
|
||||
return IS_PLAYER_GUID(((GameObject*)this)->GetOwnerGUID());
|
||||
return ((GameObject*)this)->GetOwnerGuid().IsPlayer();
|
||||
case TYPEID_UNIT:
|
||||
case TYPEID_PLAYER:
|
||||
return ((Unit*)this)->IsCharmerOrOwnerPlayerOrPlayerItself();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue