Core/SAI: Removed invalid eventId restriction on SMART_EVENT_ACTION_DONE

Port From (https://github.com/TrinityCore/TrinityCore/commit/c6802e272b95f3604bd23ee8ba361b8d7ebf64bc)
This commit is contained in:
hondacrx
2022-06-03 16:21:44 -04:00
parent 40444525b2
commit 446038b855
@@ -1149,15 +1149,6 @@ namespace Game.AI
break;
}
case SmartEvents.ActionDone:
{
if (e.Event.doAction.eventId > EventId.Charge)
{
Log.outError(LogFilter.ScriptsAi, $"SmartAIMgr: {e} uses invalid event id {e.Event.doAction.eventId}, skipped.");
return false;
}
break;
}
case SmartEvents.FriendlyHealthPCT:
if (!IsMinMaxValid(e, e.Event.friendlyHealthPct.repeatMin, e.Event.friendlyHealthPct.repeatMax))
return false;
@@ -1284,6 +1275,7 @@ namespace Game.AI
case SmartEvents.TransportRelocate:
case SmartEvents.CorpseRemoved:
case SmartEvents.AiInit:
case SmartEvents.ActionDone:
case SmartEvents.TransportAddplayer:
case SmartEvents.TransportRemovePlayer:
case SmartEvents.Aggro: