mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
+ inferno trap
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -937,6 +937,10 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
public final Iterable<Card> getAssignedDamageSources() {
|
||||
return assignedDamage.keySet();
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user