From c189e27f39f25982f5b9d808b7af0e11f57074ef Mon Sep 17 00:00:00 2001 From: SnapperRy Date: Sat, 29 Oct 2016 23:44:03 +0200 Subject: Core/SAI: reset event phase when calling SMART_ACTION_CALL_SCRIPT_RESET. Now it really does what it says on the tin. --- src/server/game/AI/SmartScripts/SmartScript.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index bd6f6949ec8..48315eb44ed 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -1671,6 +1671,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u ResetBaseObject(); break; case SMART_ACTION_CALL_SCRIPT_RESET: + SetPhase(0); OnReset(); break; case SMART_ACTION_SET_RANGED_MOVEMENT: -- cgit v1.2.3