mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Card: add notDealtCombatDamageThisTurn as negation
This commit is contained in:
@@ -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")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user