- ChangeZoneAi: use the new targeting restriction

This commit is contained in:
Agetian
2019-06-09 14:35:06 +03:00
parent a9328d2961
commit d622e6c8fc

View File

@@ -1227,7 +1227,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
}
// honor the Same Creature Type restriction
if (sa.hasParam("TargetsWithSameCreatureType")) {
if (tgt.isWithSameCreatureType()) {
Card firstTarget = sa.getTargetCard();
if (firstTarget != null && !choice.sharesCreatureTypeWith(firstTarget)) {
list.remove(choice);