Core/SmartAI: Add actions SMART_ACTION_LEAVE_VEHICLE and SMART_ACTION_REMOVE_PASSENGERS.

Fix maxdist for SMART_TARGET_CLOSEST_PLAYER.
This commit is contained in:
kaelima
2011-10-25 23:50:00 +01:00
parent 6ca1487c48
commit f958fdf246
3 changed files with 55 additions and 4 deletions

View File

@@ -758,6 +758,8 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
case SMART_ACTION_ACTIVATE_GOBJECT:
case SMART_ACTION_CALL_SCRIPT_RESET:
case SMART_ACTION_ENTER_VEHICLE:
case SMART_ACTION_LEAVE_VEHICLE:
case SMART_ACTION_REMOVE_PASSENGERS:
case SMART_ACTION_NONE:
case SMART_ACTION_CALL_TIMED_ACTIONLIST:
case SMART_ACTION_SET_NPC_FLAG: