mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 08:33:47 +00:00
refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)
This commit is contained in:
@@ -355,7 +355,7 @@ Creature* BattlegroundAV::AddAVCreature(uint16 cinfoid, uint16 type)
|
||||
BG_AV_CreaturePos[triggerSpawnID][2],
|
||||
BG_AV_CreaturePos[triggerSpawnID][3]))
|
||||
{
|
||||
trigger->setFaction(newFaction);
|
||||
trigger->SetFaction(newFaction);
|
||||
trigger->CastSpell(trigger, SPELL_HONORABLE_DEFENDER_25Y, false);
|
||||
}
|
||||
}
|
||||
@@ -786,7 +786,7 @@ void BattlegroundAV::PopulateNode(BG_AV_Nodes node)
|
||||
DelCreature(node + 302);
|
||||
return;
|
||||
}
|
||||
trigger->setFaction(ownerId == TEAM_ALLIANCE ? 84 : 83);
|
||||
trigger->SetFaction(ownerId == TEAM_ALLIANCE ? FACTION_ALLIANCE_GENERIC : FACTION_HORDE_GENERIC);
|
||||
trigger->CastSpell(trigger, SPELL_HONORABLE_DEFENDER_25Y, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user