Fix Offspring not triggering for AI (#6622)

This commit is contained in:
tool4ever
2024-11-24 12:43:57 +01:00
committed by GitHub
parent 870add0da4
commit c20898ecec

View File

@@ -711,7 +711,15 @@ public final class GameActionUtil {
host.getGame().getTriggerHandler().resetActiveTriggers(false);
}
return result != null ? result : sa;
if (result != null) {
// sanity check if need to update castSA
if (sa.getHostCard().getCastSA() == sa) {
sa.getHostCard().setCastSA(result);
}
return result;
}
return sa;
}
public static Card createETBCountersEffect(Card sourceCard, Card c, Player controller, String counter, String amount) {