refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)

This commit is contained in:
Malcrom
2021-11-01 13:04:32 -03:00
committed by GitHub
parent 3396a9da87
commit f106de8788
129 changed files with 418 additions and 444 deletions

View File

@@ -1467,7 +1467,7 @@ public:
continue;
summon->SetOwnerGUID(GetCaster()->GetGUID());
summon->setFaction(GetCaster()->getFaction());
summon->SetFaction(GetCaster()->GetFaction());
summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_IMMUNE_TO_NPC);
summon->SetReactState(REACT_PASSIVE);
summon->GetMotionMaster()->MoveFollow(GetCaster(), PET_FOLLOW_DIST, GetCaster()->GetAngle(summon), MOTION_SLOT_CONTROLLED);

View File

@@ -1006,7 +1006,7 @@ public:
bool CheckProc(ProcEventInfo& eventInfo)
{
Unit* target = eventInfo.GetActionTarget();
return target && target->getFaction() == 1843; // Xinef: Illidari demons faction
return target && target->GetFaction() == 1843; // Xinef: Illidari demons faction
}
void Register() override