mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10750] Convert Gameobject owner to objectguid use.
This commit is contained in:
parent
6154cb3b43
commit
bbd34562a8
4 changed files with 9 additions and 9 deletions
|
|
@ -2078,7 +2078,7 @@ bool WorldObject::IsControlledByPlayer() const
|
|||
case TYPEID_PLAYER:
|
||||
return ((Unit*)this)->IsCharmerOrOwnerPlayerOrPlayerItself();
|
||||
case TYPEID_DYNAMICOBJECT:
|
||||
return IS_PLAYER_GUID(((DynamicObject*)this)->GetCasterGUID());
|
||||
return ((DynamicObject*)this)->GetCasterGuid().IsPlayer();
|
||||
case TYPEID_CORPSE:
|
||||
return true;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue