mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 10:33:46 +00:00
refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)
This commit is contained in:
@@ -314,7 +314,7 @@ public:
|
||||
if (infernal)
|
||||
{
|
||||
infernal->SetDisplayId(INFERNAL_MODEL_INVISIBLE);
|
||||
infernal->setFaction(me->getFaction());
|
||||
infernal->SetFaction(me->GetFaction());
|
||||
infernals.push_back(infernal->GetGUID());
|
||||
infernal->SetControlled(true, UNIT_STATE_ROOT);
|
||||
RELAY->AI()->DoCast(infernal, SPELL_INFERNAL_RELAY);
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
events.Reset();
|
||||
me->SetVisible(false);
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
me->setFaction(35);
|
||||
me->SetFaction(FACTION_FRIENDLY);
|
||||
_events2.Reset();
|
||||
_events2.ScheduleEvent(EVENT_CHECK_VISIBILITY, 5000);
|
||||
if (me->GetEntry() == NPC_HYAKISS_THE_LURKER)
|
||||
|
||||
@@ -390,7 +390,7 @@ public:
|
||||
|
||||
if (Creature* pSpawn = me->SummonCreature(CREATURE_ARAN_BLIZZARD, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 25000))
|
||||
{
|
||||
pSpawn->setFaction(me->getFaction());
|
||||
pSpawn->SetFaction(me->GetFaction());
|
||||
pSpawn->CastSpell(pSpawn, SPELL_CIRCULAR_BLIZZARD, false);
|
||||
}
|
||||
break;
|
||||
@@ -419,7 +419,7 @@ public:
|
||||
DoStartNoMovement(target);
|
||||
ElementalOne->SetInCombatWithZone();
|
||||
ElementalOne->CombatStart(target);
|
||||
ElementalOne->setFaction(me->getFaction());
|
||||
ElementalOne->SetFaction(me->GetFaction());
|
||||
ElementalOne->SetUnitMovementFlags(MOVEMENTFLAG_ROOT);
|
||||
ElementalOne->SetModifierValue(UNIT_MOD_RESISTANCE_FROST, BASE_VALUE, 0);
|
||||
}
|
||||
@@ -433,7 +433,7 @@ public:
|
||||
DoStartNoMovement(target);
|
||||
ElementalTwo->SetInCombatWithZone();
|
||||
ElementalTwo->CombatStart(target);
|
||||
ElementalTwo->setFaction(me->getFaction());
|
||||
ElementalTwo->SetFaction(me->GetFaction());
|
||||
ElementalTwo->SetUnitMovementFlags(MOVEMENTFLAG_ROOT);
|
||||
ElementalTwo->SetModifierValue(UNIT_MOD_RESISTANCE_FROST, BASE_VALUE, 0);
|
||||
}
|
||||
@@ -447,7 +447,7 @@ public:
|
||||
DoStartNoMovement(target);
|
||||
ElementalThree->SetInCombatWithZone();
|
||||
ElementalThree->CombatStart(target);
|
||||
ElementalThree->setFaction(me->getFaction());
|
||||
ElementalThree->SetFaction(me->GetFaction());
|
||||
ElementalThree->SetUnitMovementFlags(MOVEMENTFLAG_ROOT);
|
||||
ElementalThree->SetModifierValue(UNIT_MOD_RESISTANCE_FROST, BASE_VALUE, 0);
|
||||
}
|
||||
@@ -461,7 +461,7 @@ public:
|
||||
DoStartNoMovement(target);
|
||||
ElementalFour->SetInCombatWithZone();
|
||||
ElementalFour->CombatStart(target);
|
||||
ElementalFour->setFaction(me->getFaction());
|
||||
ElementalFour->SetFaction(me->GetFaction());
|
||||
ElementalFour->SetUnitMovementFlags(MOVEMENTFLAG_ROOT);
|
||||
ElementalFour->SetModifierValue(UNIT_MOD_RESISTANCE_FROST, BASE_VALUE, 0);
|
||||
}
|
||||
@@ -476,7 +476,7 @@ public:
|
||||
if (Creature* unit = me->SummonCreature(CREATURE_SHADOW_OF_ARAN, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000))
|
||||
{
|
||||
unit->Attack(me->GetVictim(), true);
|
||||
unit->setFaction(me->getFaction());
|
||||
unit->SetFaction(me->GetFaction());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1384,7 +1384,7 @@ void boss_julianne::boss_julianneAI::UpdateAI(uint32 diff)
|
||||
{
|
||||
Talk(SAY_JULIANNE_AGGRO);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
me->setFaction(16);
|
||||
me->SetFaction(FACTION_MONSTER_2);
|
||||
AggroYellTimer = 0;
|
||||
}
|
||||
else
|
||||
@@ -1416,7 +1416,7 @@ void boss_julianne::boss_julianneAI::UpdateAI(uint32 diff)
|
||||
CAST_AI(boss_romulo::boss_romuloAI, pRomulo->AI())->Phase = PHASE_ROMULO;
|
||||
DoZoneInCombat(pRomulo);
|
||||
|
||||
pRomulo->setFaction(16);
|
||||
pRomulo->SetFaction(FACTION_MONSTER_2);
|
||||
}
|
||||
SummonedRomulo = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user