refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)
This commit is contained in:
parent
3396a9da87
commit
f106de8788
129 changed files with 418 additions and 444 deletions
|
|
@ -333,7 +333,7 @@ public:
|
|||
|
||||
if (!pfactionid)
|
||||
{
|
||||
uint32 factionid = target->getFaction();
|
||||
uint32 factionid = target->GetFaction();
|
||||
uint32 flag = target->GetUInt32Value(UNIT_FIELD_FLAGS);
|
||||
uint32 npcflag = target->GetUInt32Value(UNIT_NPC_FLAGS);
|
||||
uint32 dyflag = target->GetUInt32Value(UNIT_DYNAMIC_FLAGS);
|
||||
|
|
@ -375,7 +375,7 @@ public:
|
|||
|
||||
handler->PSendSysMessage(LANG_YOU_CHANGE_FACTION, target->GetGUID().GetCounter(), factionid, flag, npcflag, dyflag);
|
||||
|
||||
target->setFaction(factionid);
|
||||
target->SetFaction(factionid);
|
||||
target->SetUInt32Value(UNIT_FIELD_FLAGS, flag);
|
||||
target->SetUInt32Value(UNIT_NPC_FLAGS, npcflag);
|
||||
target->SetUInt32Value(UNIT_DYNAMIC_FLAGS, dyflag);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue