support "notDrawnThisTurn"

This commit is contained in:
Northmoc
2020-11-23 13:10:41 -05:00
parent cf25c1aaa8
commit 6eb6d5d758
2 changed files with 5 additions and 1 deletions

View File

@@ -1106,6 +1106,10 @@ public class CardProperty {
if (!card.getDrawnThisTurn()) { if (!card.getDrawnThisTurn()) {
return false; return false;
} }
} else if (property.startsWith("notDrawnThisTurn")) {
if (card.getDrawnThisTurn()) {
return false;
}
} else if (property.startsWith("enteredBattlefieldThisTurn")) { } else if (property.startsWith("enteredBattlefieldThisTurn")) {
if (!(card.getTurnInZone() == game.getPhaseHandler().getTurn())) { if (!(card.getTurnInZone() == game.getPhaseHandler().getTurn())) {
return false; return false;

View File

@@ -414,7 +414,7 @@ public final class CardScriptParser {
"IsTargetingSource", "sharesPermanentTypeWith", "IsTargetingSource", "sharesPermanentTypeWith",
"canProduceSameManaTypeWith", "SecondSpellCastThisTurn", "canProduceSameManaTypeWith", "SecondSpellCastThisTurn",
"ThisTurnCast", "withFlashback", "tapped", "untapped", "faceDown", "ThisTurnCast", "withFlashback", "tapped", "untapped", "faceDown",
"faceUp", "hasLevelUp", "DrawnThisTurn", "faceUp", "hasLevelUp", "DrawnThisTurn", "notDrawnThisTurn",
"enteredBattlefieldThisTurn", "notEnteredBattlefieldThisTurn", "enteredBattlefieldThisTurn", "notEnteredBattlefieldThisTurn",
"firstTurnControlled", "notFirstTurnControlled", "firstTurnControlled", "notFirstTurnControlled",
"startedTheTurnUntapped", "attackedOrBlockedSinceYourLastUpkeep", "startedTheTurnUntapped", "attackedOrBlockedSinceYourLastUpkeep",