aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-05 13:19:40 -0500
committermegamage <none@none>2009-06-05 13:19:40 -0500
commit574e64bbbf3ace7ee6312ddbaaf196df406a641b (patch)
tree62c9a9dd366d63fb5ad576002fe09bb5e2078590 /src
parent95bde24500f04636efb4f67e23effb13f900945d (diff)
*Fix quest Death`s Challenge for both factions. By Azrael
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp5
1 files changed, 4 insertions, 1 deletions
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;