From 28b33663e7a6080237d7ab87ba299efec4ce14cd Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Fri, 26 Apr 2019 18:52:38 +0200 Subject: [PATCH] Core/SAI: cherry pick followup --- src/server/game/AI/SmartScripts/SmartScript.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/game/AI/SmartScripts/SmartScript.h b/src/server/game/AI/SmartScripts/SmartScript.h index 2e07c576a8a..630e66b490d 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.h +++ b/src/server/game/AI/SmartScripts/SmartScript.h @@ -87,7 +87,7 @@ class TC_GAME_API SmartScript void ResetBaseObject(); //TIMED_ACTIONLIST (script type 9 aka script9) - void SetScript9(SmartScriptHolder& e, uint32 entry); + void SetScript9(SmartScriptHolder& e, uint32 entry, Unit* invoker); Unit* GetLastInvoker(Unit* invoker = nullptr); ObjectGuid mLastInvoker; typedef std::unordered_map CounterMap; @@ -103,6 +103,7 @@ class TC_GAME_API SmartScript SmartAIEventList mEvents; SmartAIEventList mInstallEvents; SmartAIEventList mTimedActionList; + ObjectGuid mTimedActionListInvoker; bool isProcessingTimedActionList; Creature* me; ObjectGuid meOrigGUID;