More tests, more fixes
Build / Build (push) Successful in 1m57s

This commit is contained in:
Deukhoofd committed 2026-07-05 18:26:55 +02:00
1 parent 1ab15110f5
commit 6a82c20cf2
20 files changed
+1682 -12

No files matched your search

@@ -11,8 +11,8 @@ public class CoreEnforcer : Script, IScriptOnSecondaryEffect
return;
var turnChoices = battleData.Battle.PreviousTurnChoices.Last();
var currentChoiceIndex = turnChoices.IndexOf(move.MoveChoice);
if (currentChoiceIndex == -1 ||
!turnChoices.Take(currentChoiceIndex).Any(choice => choice is IMoveChoice or IItemChoice))
if (currentChoiceIndex == -1 || !turnChoices.Take(currentChoiceIndex)
.Any(choice => choice is IMoveChoice or IItemChoice && choice.User == target))
{
move.GetHitData(target, hit).Fail();
return;