aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTartalo <none@none>2010-04-11 17:59:59 +0200
committerTartalo <none@none>2010-04-11 17:59:59 +0200
commitd5c1138a53b0326df82f73f7d51be3c23c0a9939 (patch)
treeb71d8daad56ef22af391a7813e4e820b601cb3f5 /src
parentc502f226cb43e52b692dca107154ffdd038b4ff8 (diff)
Nexus: Hack for servers that allow two side groups to be able to kill the
faction-dependent npcs. --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/scripts/northrend/nexus/nexus/instance_nexus.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/scripts/northrend/nexus/nexus/instance_nexus.cpp b/src/scripts/northrend/nexus/nexus/instance_nexus.cpp
index 6e1732e0c2e..cf94f14f8b9 100644
--- a/src/scripts/northrend/nexus/nexus/instance_nexus.cpp
+++ b/src/scripts/northrend/nexus/nexus/instance_nexus.cpp
@@ -20,6 +20,11 @@
#define NUMBER_OF_ENCOUNTERS 4
+enum Factions
+{
+ FACTION_HOSTILE_FOR_ALL = 16
+};
+
struct instance_nexus : public ScriptedInstance
{
instance_nexus(Map *pMap) : ScriptedInstance(pMap) { Initialize(); }
@@ -64,30 +69,40 @@ struct instance_nexus : public ScriptedInstance
// Alliance npcs are spawned by default, if you are alliance, you will fight against horde npcs.
case 26800:
{
+ if (ServerAllowsTwoSideGroups())
+ pCreature->setFaction(FACTION_HOSTILE_FOR_ALL);
if (TeamInInstance == ALLIANCE)
pCreature->UpdateEntry(26799, HORDE);
break;
}
case 26802:
{
+ if (ServerAllowsTwoSideGroups())
+ pCreature->setFaction(FACTION_HOSTILE_FOR_ALL);
if (TeamInInstance == ALLIANCE)
pCreature->UpdateEntry(26801, HORDE);
break;
}
case 26805:
{
+ if (ServerAllowsTwoSideGroups())
+ pCreature->setFaction(FACTION_HOSTILE_FOR_ALL);
if (TeamInInstance == ALLIANCE)
pCreature->UpdateEntry(26803, HORDE);
break;
}
case 27949:
{
+ if (ServerAllowsTwoSideGroups())
+ pCreature->setFaction(FACTION_HOSTILE_FOR_ALL);
if (TeamInInstance == ALLIANCE)
pCreature->UpdateEntry(27947, HORDE);
break;
}
case 26796:
{
+ if (ServerAllowsTwoSideGroups())
+ pCreature->setFaction(FACTION_HOSTILE_FOR_ALL);
if (TeamInInstance == ALLIANCE)
pCreature->UpdateEntry(26798, HORDE);
break;