These two should probably be rewritten when getDamageDoneThisTurn supports Predicates for the Source and Target
|
public final boolean hasProwl(final SpellAbility sa) { |
|
return !game.getDamageDoneThisTurn(true, true, "Card.YouCtrl+sharesCreatureTypeWith", "Player", sa.getHostCard(), this, sa).isEmpty(); |
|
} |
|
|
|
public final boolean hasFreerunning() { |
|
return !game.getDamageDoneThisTurn(true, true, "Card.Assassin+YouCtrl,Card.IsCommander+YouCtrl", "Player", null, this, null).isEmpty(); |
|
} |
These two should probably be reworked into Predicates
|
if (sourceToTarget != null) { |
|
if (validSourceCard != null && !sourceToTarget.getLeft().isValid(validSourceCard.split(","), sourceController, source == null ? sourceToTarget.getLeft() : source, ctb)) { |
|
continue; |
|
} |
|
if (validTargetEntity != null && !sourceToTarget.getRight().isValid(validTargetEntity.split(","), sourceController, source, ctb)) { |
|
continue; |
|
} |
These two should probably be rewritten when getDamageDoneThisTurn supports Predicates for the Source and Target
forge/forge-game/src/main/java/forge/game/player/Player.java
Lines 2156 to 2162 in debd893
These two should probably be reworked into Predicates
forge/forge-game/src/main/java/forge/game/card/CardDamageHistory.java
Lines 262 to 268 in debd893