mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +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
|
// honor the Same Creature Type restriction
|
||||||
if (sa.hasParam("TargetsWithSameCreatureType")) {
|
if (tgt.isWithSameCreatureType()) {
|
||||||
Card firstTarget = sa.getTargetCard();
|
Card firstTarget = sa.getTargetCard();
|
||||||
if (firstTarget != null && !choice.sharesCreatureTypeWith(firstTarget)) {
|
if (firstTarget != null && !choice.sharesCreatureTypeWith(firstTarget)) {
|
||||||
list.remove(choice);
|
list.remove(choice);
|
||||||
|
|||||||
Reference in New Issue
Block a user