diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp | 5 |
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; |