mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 07:37:02 +00:00
Removed direct use of some updatefields
This commit is contained in:
parent
768fa2d2de
commit
efdb8e01dd
13 changed files with 122 additions and 51 deletions
|
|
@ -128,10 +128,9 @@ void Totem::UnSummon()
|
|||
|
||||
void Totem::SetOwner(uint64 guid)
|
||||
{
|
||||
SetUInt64Value(UNIT_FIELD_SUMMONEDBY, guid);
|
||||
SetUInt64Value(UNIT_FIELD_CREATEDBY, guid);
|
||||
Unit *owner = GetOwner();
|
||||
if (owner)
|
||||
SetCreatorGUID(guid);
|
||||
SetOwnerGUID(guid);
|
||||
if (Unit *owner = GetOwner())
|
||||
{
|
||||
setFaction(owner->getFaction());
|
||||
SetLevel(owner->getLevel());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue