*Fix a bug that dark rider of dk quest cannot be attacked.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-15 12:12:22 -05:00
parent b9610f27dd
commit 9055f25030
2 changed files with 2 additions and 6 deletions
@@ -560,13 +560,13 @@ struct TRINITY_DLL_DECL npc_ros_dark_riderAI : public ScriptedAI
return; return;
// this should be before next one otherwise he may enter vehicle again // 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); me->EnterVehicle((Vehicle*)who);
ScriptedAI::MoveInLineOfSight(who); ScriptedAI::MoveInLineOfSight(who);
} }
void CombatStart(Unit *who) void EnterCombat(Unit *who)
{ {
me->ExitVehicle(); me->ExitVehicle();
} }
-4
View File
@@ -621,10 +621,6 @@ class Spell
uint32 m_spellState; uint32 m_spellState;
uint32 m_timer; uint32 m_timer;
float m_castPositionX;
float m_castPositionY;
float m_castPositionZ;
float m_castOrientation;
bool m_IsTriggeredSpell; bool m_IsTriggeredSpell;
// if need this can be replaced by Aura copy // if need this can be replaced by Aura copy