Some fixes (#5320)

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
This commit is contained in:
tool4ever
2024-05-30 07:32:08 +02:00
committed by GitHub
parent 60b4c998ba
commit 2ddcaab59d
12 changed files with 26 additions and 28 deletions

View File

@@ -305,8 +305,8 @@ public class ComputerUtil {
final CostPayment pay = new CostPayment(newSA.getPayCosts(), newSA);
// do this after card got added to stack
if (!sa.checkRestrictions(ai)) {
GameActionUtil.rollbackAbility(sa, fromZone, zonePosition, pay, source);
if (!newSA.checkRestrictions(ai)) {
GameActionUtil.rollbackAbility(newSA, fromZone, zonePosition, pay, source);
return false;
}
@@ -1280,7 +1280,6 @@ public class ComputerUtil {
if (cardState.hasKeyword(Keyword.SOULBOND) && buffedcard.isCreature() && !buffedcard.isPaired()) {
return true;
}
} // BuffedBy
// there's a good chance AI will attack weak target