mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 16:43:47 +00:00
fix(Scripts/Oculus): Implement crossfaction support for drakes (#23704)
This commit is contained in:
@@ -63,23 +63,27 @@ public:
|
||||
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature) override
|
||||
void OnCreatureCreate(Creature* creature) override
|
||||
{
|
||||
switch (pCreature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case NPC_DRAKOS:
|
||||
uiDrakosGUID = pCreature->GetGUID();
|
||||
uiDrakosGUID = creature->GetGUID();
|
||||
break;
|
||||
case NPC_VAROS:
|
||||
uiVarosGUID = pCreature->GetGUID();
|
||||
uiVarosGUID = creature->GetGUID();
|
||||
break;
|
||||
case NPC_UROM:
|
||||
uiUromGUID = pCreature->GetGUID();
|
||||
uiUromGUID = creature->GetGUID();
|
||||
break;
|
||||
case NPC_EREGOS:
|
||||
uiEregosGUID = pCreature->GetGUID();
|
||||
uiEregosGUID = creature->GetGUID();
|
||||
break;
|
||||
}
|
||||
|
||||
if (sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP))
|
||||
if (creature->EntryEquals(NPC_AMBER_DRAKE, NPC_EMERALD_DRAKE, NPC_RUBY_DRAKE))
|
||||
creature->SetFaction(FACTION_FRIENDLY); // Friendly faction to allow interaction from both factions
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* pGo) override
|
||||
|
||||
Reference in New Issue
Block a user