mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Add to Time to Reflect
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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/thresher_lizard.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/trial_of_ambition.txt -text
|
||||
forge-gui/res/cardsfolder/upcoming/trial_of_knowledge.txt -text
|
||||
|
||||
@@ -5261,6 +5261,29 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
return getBlockedThisTurn() != null;
|
||||
} else if (property.startsWith("blockedByThisTurn")) {
|
||||
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")) {
|
||||
return source.blockedByThisTurn != null && source.blockedByThisTurn.contains(this);
|
||||
} else if (property.startsWith("blockedSource")) {
|
||||
|
||||
5
forge-gui/res/cardsfolder/upcoming/time_to_reflect.txt
Normal file
5
forge-gui/res/cardsfolder/upcoming/time_to_reflect.txt
Normal 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.
|
||||
Reference in New Issue
Block a user