*Fix a bug that dark rider of dk quest cannot be attacked.
--HG-- branch : trunk
This commit is contained in:
@@ -560,13 +560,13 @@ struct TRINITY_DLL_DECL npc_ros_dark_riderAI : public ScriptedAI
|
||||
return;
|
||||
|
||||
// this should be before next one otherwise he may enter vehicle again
|
||||
if(!me->m_Vehicle && who->GetEntry() == 28782 && CAST_CRE(who)->isVehicle() && !who->GetCharmerGUID())
|
||||
if(!me->m_Vehicle && who->GetEntry() == 28782 && CAST_CRE(who)->isVehicle() && CAST_VEH(who)->HasEmptySeat(0))
|
||||
me->EnterVehicle((Vehicle*)who);
|
||||
|
||||
ScriptedAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
void CombatStart(Unit *who)
|
||||
void EnterCombat(Unit *who)
|
||||
{
|
||||
me->ExitVehicle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user