mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- ChangeZoneAi: use the new targeting restriction
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user