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:
1 parent
e16e18da23
commit
3d4d147196
4 files changed
+10
-81
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user