Create the_legend_of_yangchen_avatar_yangchen.txt (#9055)

This commit is contained in:
Fulgur14
2025-11-05 18:47:40 +01:00
committed by GitHub
parent 3399a455ba
commit 03c1a0e6f0
3 changed files with 35 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import forge.game.card.Card;
import forge.game.card.CardCollectionView;
import forge.game.card.CardLists;
import forge.game.card.CardPredicates;
import forge.game.spellability.SpellAbility;
import forge.game.zone.ZoneType;
import forge.util.Expressions;
import forge.util.TextUtil;
@@ -282,6 +283,14 @@ public class PlayerProperty {
if (!player.maxSpeed()) {
return false;
}
} else if (property.equals("targetedBy")) {
if (!(spellAbility instanceof SpellAbility)) {
return false;
}
SpellAbility sp = (SpellAbility)spellAbility;
if (!sp.getRootAbility().isTargeting(player)) {
return false;
}
} else if (property.startsWith("controls")) {
// this allows escaping _ with \ in case of complex restrictions (used on Turf War)
List<String> type = new ArrayList<>();