Add to Time to Reflect

This commit is contained in:
Sol
2017-04-27 03:39:34 +00:00
parent 21ced301bc
commit 69a07daa00
3 changed files with 29 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -16922,6 +16922,7 @@ forge-gui/res/cardsfolder/upcoming/temmet_vizier_of_naktamun.txt -text
forge-gui/res/cardsfolder/upcoming/those_who_serve.txt -text forge-gui/res/cardsfolder/upcoming/those_who_serve.txt -text
forge-gui/res/cardsfolder/upcoming/thresher_lizard.txt -text forge-gui/res/cardsfolder/upcoming/thresher_lizard.txt -text
forge-gui/res/cardsfolder/upcoming/throne_of_the_god_pharaoh.txt -text forge-gui/res/cardsfolder/upcoming/throne_of_the_god_pharaoh.txt -text
forge-gui/res/cardsfolder/upcoming/time_to_reflect.txt -text
forge-gui/res/cardsfolder/upcoming/trespassers_curse.txt -text forge-gui/res/cardsfolder/upcoming/trespassers_curse.txt -text
forge-gui/res/cardsfolder/upcoming/trial_of_ambition.txt -text forge-gui/res/cardsfolder/upcoming/trial_of_ambition.txt -text
forge-gui/res/cardsfolder/upcoming/trial_of_knowledge.txt -text forge-gui/res/cardsfolder/upcoming/trial_of_knowledge.txt -text

View File

@@ -5261,6 +5261,29 @@ public class Card extends GameEntity implements Comparable<Card> {
return getBlockedThisTurn() != null; return getBlockedThisTurn() != null;
} else if (property.startsWith("blockedByThisTurn")) { } else if (property.startsWith("blockedByThisTurn")) {
return getBlockedByThisTurn() != null; return getBlockedByThisTurn() != null;
} else if (property.startsWith("blockedValidThisTurn ")) {
if (getBlockedThisTurn() == null) {
return false;
}
String valid = property.split(" ")[1];
for(Card c : getBlockedThisTurn()) {
if (c.isValid(valid, this.getController(), source, spellAbility)) {
return true;
}
}
return false;
} else if (property.startsWith("blockedByValidThisTurn ")) {
if (getBlockedByThisTurn() == null) {
return false;
}
String valid = property.split(" ")[1];
for(Card c : getBlockedByThisTurn()) {
if (c.isValid(valid, this.getController(), source, spellAbility)) {
return true;
}
}
return false;
} else if (property.startsWith("blockedBySourceThisTurn")) { } else if (property.startsWith("blockedBySourceThisTurn")) {
return source.blockedByThisTurn != null && source.blockedByThisTurn.contains(this); return source.blockedByThisTurn != null && source.blockedByThisTurn.contains(this);
} else if (property.startsWith("blockedSource")) { } else if (property.startsWith("blockedSource")) {

View File

@@ -0,0 +1,5 @@
Name:Time to Reflect
ManaCost:W
Types:Instant
A:SP$ ChangeZone | Cost$ W | ValidTgts$ Creature.blockedValidThisTurn Zombie,Creature.blockedByValidThisTurn Zombie | TgtPrompt$ Select target creature that blocked or was blocked by a Zombie this turn | Origin$ Battlefield | Destination$ Exile | SpellDescription$ Exile target creature that blocked or was blocked by a Zombie this turn.
Oracle:Exile target creature that blocked or was blocked by a Zombie this turn.