mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-13 17:27:46 +00:00
Create the_legend_of_yangchen_avatar_yangchen.txt (#9055)
This commit is contained in:
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user