mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user