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
@@ -3102,7 +3102,7 @@ namespace Game.AI
uint count = _me.GetVictim().GetAuraCount(e.Event.aura.spell);
if (count < e.Event.aura.count)
return;
ProcessTimedAction(e, e.Event.aura.repeatMin, e.Event.aura.repeatMax);
ProcessTimedAction(e, e.Event.aura.repeatMin, e.Event.aura.repeatMax, _me.GetVictim());
break;
}
case SmartEvents.Charmed: