Initial setup for testing AI performance, random fixes
Build / Build (push) Successful in 54s

This commit is contained in:
Deukhoofd committed 2025-07-05 13:56:33 +02:00
1 parent 4499927551
commit 32aaa5150a
33 files changed
+511 -26

No files matched your search

@@ -14,8 +14,8 @@ public class Encore : Script, IScriptOnSecondaryEffect
var currentTurn = battle.ChoiceQueue!.LastRanChoice;
var lastMove = battle.PreviousTurnChoices.SelectMany(x => x).OfType<IMoveChoice>()
.TakeWhile(x => x != currentTurn).LastOrDefault(x => x.User == target);
if (lastMove == null)
.TakeWhile(x => !Equals(x, currentTurn)).LastOrDefault(x => x.User == target);
if (lastMove == null || battle.Library.MiscLibrary.IsReplacementChoice(lastMove))
{
move.GetHitData(target, hit).Fail();
return;