Implements AI Switching
Build / Build (push) Successful in 58s

This commit is contained in:
Deukhoofd committed 2025-07-12 13:03:00 +02:00
1 parent 364d4b9080
commit bf83b25238
34 files changed
+903 -226

No files matched your search

@@ -21,8 +21,7 @@ public class Sketch : Script, IScriptOnSecondaryEffect
return;
}
var choiceQueue = move.Battle.PreviousTurnChoices;
var lastMove = choiceQueue.SelectMany(x => x).OfType<IMoveChoice>().LastOrDefault(x => x.User == target);
var lastMove = target.BattleData?.LastMoveChoice;
if (lastMove == null || lastMove.ChosenMove.MoveData.HasFlag("not_sketchable"))
{
move.GetHitData(target, hit).Fail();