mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 18:13:48 +00:00
refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)
This commit is contained in:
@@ -464,7 +464,7 @@ public:
|
||||
summoned->AI()->AttackStart(me);
|
||||
else
|
||||
{
|
||||
summoned->setFaction(me->getFaction());
|
||||
summoned->SetFaction(me->GetFaction());
|
||||
summoned->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
summoned->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
}
|
||||
@@ -553,15 +553,15 @@ public:
|
||||
if (!me->IsInCombat())
|
||||
{
|
||||
// Do not let the raid skip straight to Archimonde. Visible and hostile ONLY if Azagalor is finished.
|
||||
if ((instance->GetData(DATA_AZGALOREVENT) < DONE) && (me->IsVisible() || (me->getFaction() != 35)))
|
||||
if ((instance->GetData(DATA_AZGALOREVENT) < DONE) && (me->IsVisible() || (me->GetFaction() != FACTION_FRIENDLY)))
|
||||
{
|
||||
me->SetVisible(false);
|
||||
me->setFaction(35);
|
||||
me->SetFaction(FACTION_FRIENDLY);
|
||||
}
|
||||
|
||||
if ((instance->GetData(DATA_AZGALOREVENT) >= DONE) && (!me->IsVisible() || (me->getFaction() == 35)))
|
||||
if ((instance->GetData(DATA_AZGALOREVENT) >= DONE) && (!me->IsVisible() || (me->GetFaction() == FACTION_FRIENDLY)))
|
||||
{
|
||||
me->setFaction(1720);
|
||||
me->SetFaction(FACTION_DRAGONKIN);
|
||||
me->SetVisible(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -910,7 +910,7 @@ void hyjalAI::HideNearPos(float x, float y)
|
||||
for (std::list<Creature*>::const_iterator itr = creatures.begin(); itr != creatures.end(); ++itr)
|
||||
{
|
||||
(*itr)->SetVisible(false);
|
||||
(*itr)->setFaction(35);//make them friendly so mobs won't attack them
|
||||
(*itr)->SetFaction(FACTION_FRIENDLY); // make them friendly so mobs won't attack them
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -988,7 +988,7 @@ void hyjalAI::DoOverrun(uint32 faction, const uint32 diff)
|
||||
if ((*itr) && (*itr)->IsAlive())
|
||||
{
|
||||
(*itr)->CastSpell(*itr, SPELL_TELEPORT_VISUAL, true);
|
||||
(*itr)->setFaction(35);//make them friendly so mobs won't attack them
|
||||
(*itr)->SetFaction(FACTION_FRIENDLY); // make them friendly so mobs won't attack them
|
||||
(*itr)->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -471,7 +471,7 @@ public:
|
||||
if (trigger)
|
||||
{
|
||||
trigger->SetVisible(false);
|
||||
trigger->setFaction(me->getFaction());
|
||||
trigger->SetFaction(me->GetFaction());
|
||||
trigger->SetDisableGravity(true);
|
||||
trigger->CastSpell(me, SPELL_METEOR, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user