From 574e64bbbf3ace7ee6312ddbaaf196df406a641b Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 5 Jun 2009 13:19:40 -0500 Subject: *Fix quest Death`s Challenge for both factions. By Azrael --HG-- branch : trunk --- .../scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp index b950fade6c9..5ec53a0cdcb 100644 --- a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp +++ b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp @@ -480,7 +480,10 @@ bool GossipSelect_npc_death_knight_initiate(Player *player, Creature *_Creature, if( action == GOSSIP_ACTION_INFO_DEF ) { player->CastSpell(player, SPELL_DUEL_FLAG, true); - _Creature->setFaction(10); // make him yellow, not red (will be killed by other npc) + if (player->GetTeam() == HORDE ) // Check the player team, then choose faction + _Creature->setFaction(1); + else + _Creature->setFaction(2); _Creature->AI()->AttackStart(player); } return true; -- cgit v1.2.3