Merge remote-tracking branch 'core/master'

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

View File

@@ -299,9 +299,11 @@ 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 (("DonateTargetPerm").equals(sa.getParam("AILogic"))) { if (sa.hasParam("AILogic")) {
// Donate step 2 - target a donatable permanent. if (("DonateTargetPerm").equals(sa.getParam("AILogic"))) {
return SpecialCardAi.Donate.considerDonatingPermanent(ai, sa); // Donate step 2 - target a donatable permanent.
return SpecialCardAi.Donate.considerDonatingPermanent(ai, sa);
}
} }
if (!sa.usesTargeting()) { if (!sa.usesTargeting()) {