Core/SmartAI:

- Drop useless actions SMART_ACTION_ENTER_VEHICLE, SMART_ACTION_LEAVE_VEHICLE and SMART_ACTION_REMOVE_PASSENGERS.
(Vehicles are aura-driven, just remove or add the proper aura to achieve the same as these actions did)
- Fixed possible crash in SMART_ACTION_SEND_GOSSIP_MENU
- Areatriggers should not be triggered by dead players
This commit is contained in:
kaelima committed 2011-10-31 02:01:17 +01:00
1 parent e16e18da23
commit 3d4d147196
4 files changed
+10 -81

No files matched your search

+4 -4
View File
@@ -917,13 +917,13 @@ class SmartTrigger : public AreaTriggerScript
{
public:
SmartTrigger()
: AreaTriggerScript("SmartTrigger")
{
}
SmartTrigger() : AreaTriggerScript("SmartTrigger") {}
bool OnTrigger(Player* player, AreaTriggerEntry const* trigger)
{
if (!player->isAlive())
return false;
sLog->outDebug(LOG_FILTER_DATABASE_AI, "AreaTrigger %u is using SmartTrigger script", trigger->id);
SmartScript script;
script.OnInitialize(NULL, trigger);