*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 )
|
if( action == GOSSIP_ACTION_INFO_DEF )
|
||||||
{
|
{
|
||||||
player->CastSpell(player, SPELL_DUEL_FLAG, true);
|
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);
|
_Creature->AI()->AttackStart(player);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user