diff options
Diffstat (limited to 'src/game/CombatAI.cpp')
-rw-r--r-- | src/game/CombatAI.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/game/CombatAI.cpp b/src/game/CombatAI.cpp index 5f1b21e0da2..e9babeba414 100644 --- a/src/game/CombatAI.cpp +++ b/src/game/CombatAI.cpp @@ -59,6 +59,11 @@ int AOEAI::Permissible(const Creature * /*creature*/) return PERMIT_BASE_NO; } +int VehicleAI::Permissible(const Creature * /*creature*/) +{ + return PERMIT_BASE_NO; +} + void CombatAI::InitializeAI() { for (uint32 i = 0; i < CREATURE_MAX_SPELLS; ++i) @@ -281,3 +286,22 @@ void AOEAI::UpdateAI(const uint32 /*diff*/) if (!me->HasAura(me->m_spells[0])) me->CastSpell(me, me->m_spells[0],false); } + +////////////// +//VehicleAI +////////////// + +//NOTE: VehicleAI::UpdateAI runs even while the vehicle is mounted +void VehicleAI::UpdateAI(const uint32 diff) +{ +} + +void VehicleAI::Reset() +{ + m_vehicle->Reset(); +} + +void VehicleAI::OnCharmed(bool apply) +{ + m_IsVehicleInUse = apply; +}
\ No newline at end of file |