Card: add notDealtCombatDamageThisTurn as negation

This commit is contained in:
Hanmac
2016-08-10 15:02:31 +00:00
parent eb62bf1bef
commit ca72abc65c

View File

@@ -4717,7 +4717,7 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!hasDealtDamageToOpponentThisTurn()) { if (!hasDealtDamageToOpponentThisTurn()) {
return false; return false;
} }
} else if (property.startsWith("dealtCombatDamageThisTurn ")) { } else if (property.startsWith("dealtCombatDamageThisTurn ") || property.startsWith("notDealtCombatDamageThisTurn ")) {
final String v = property.split(" ")[1]; final String v = property.split(" ")[1];
final List<GameEntity> list = getDamageHistory().getThisTurnCombatDamaged(); final List<GameEntity> list = getDamageHistory().getThisTurnCombatDamaged();
boolean found = false; boolean found = false;
@@ -4727,7 +4727,7 @@ public class Card extends GameEntity implements Comparable<Card> {
break; break;
} }
} }
if (!found) { if (found && property.startsWith("not")) {
return false; return false;
} }
} else if (property.startsWith("controllerWasDealtCombatDamageByThisTurn")) { } else if (property.startsWith("controllerWasDealtCombatDamageByThisTurn")) {