Scripts/SmartAI: SMART_TARGET_INVOKER cleanup step 1. The core will now log errors on start-up if SMART_TARGET_INVOKER abuse is found, but will continue to load the scripts as deprecated for now.

Port From (https://github.com/TrinityCore/TrinityCore/commit/06b5b8d8b7ac3da65013ccc0f03599ee9dee2163)
This commit is contained in:
hondacrx
2021-06-23 22:41:44 -04:00
parent de6b8b0240
commit fc49a98dab
5 changed files with 72 additions and 6 deletions
+1 -1
View File
@@ -888,7 +888,7 @@ namespace Game.AI
SetDespawnTime(5000);
StartDespawn();
GetScript().ProcessEventsFor(SmartEvents.FollowCompleted);
GetScript().ProcessEventsFor(SmartEvents.FollowCompleted, player);
}
public void SetScript9(SmartScriptHolder e, uint entry, Unit invoker)