+ inferno trap

This commit is contained in:
Maxmtg
2013-05-08 09:03:27 +00:00
parent d1b415e39f
commit 8cdcb5e01d
4 changed files with 22 additions and 0 deletions

View File

@@ -1298,6 +1298,12 @@ public class CardFactoryUtil {
// Count$YourTypeDamageThisTurn Type
if (sq[0].contains("YourTypeDamageThisTurn")) return doXMath(cc.getAssignedDamage(sq[0].split(" ")[1]), m, c);
if (sq[0].contains("YourDamageSourcesThisTurn")) {
Iterable<Card> allSrc = cc.getAssignedDamageSources();
String restriction = sq[0].split(" ")[1];
List<Card> filtered = CardLists.getValidCards(allSrc, restriction, cc, c);
return doXMath(filtered.size(), m, c);
}
if (sq[0].contains("YourLandsPlayed")) return doXMath(cc.getNumLandsPlayed(), m, c);
if (sq[0].contains("OppLandsPlayed")) return doXMath(ccOpp.getNumLandsPlayed(), m, c);

View File

@@ -937,6 +937,10 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
}
return num;
}
public final Iterable<Card> getAssignedDamageSources() {
return assignedDamage.keySet();
}
/**
* <p>