mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
*Fix quest Death`s Challenge for both factions. By Azrael
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user