Merge remote-tracking branch 'core/master'

This commit is contained in:
Anthony Calosa
2022-02-17 09:14:39 +08:00

View File

@@ -299,10 +299,12 @@ public class ControlGainAi extends SpellAbilityAi {
final Game game = ai.getGame(); final Game game = ai.getGame();
// Special card logic that is processed elsewhere // Special card logic that is processed elsewhere
if (sa.hasParam("AILogic")) {
if (("DonateTargetPerm").equals(sa.getParam("AILogic"))) { if (("DonateTargetPerm").equals(sa.getParam("AILogic"))) {
// Donate step 2 - target a donatable permanent. // Donate step 2 - target a donatable permanent.
return SpecialCardAi.Donate.considerDonatingPermanent(ai, sa); return SpecialCardAi.Donate.considerDonatingPermanent(ai, sa);
} }
}
if (!sa.usesTargeting()) { if (!sa.usesTargeting()) {
if (sa.hasParam("AllValid")) { if (sa.hasParam("AllValid")) {