mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added Mana Maze
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -6482,6 +6482,7 @@ res/cardsfolder/m/mana_geyser.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/m/mana_leak.txt svneol=native#text/plain
|
res/cardsfolder/m/mana_leak.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/mana_leech.txt svneol=native#text/plain
|
res/cardsfolder/m/mana_leech.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/mana_matrix.txt svneol=native#text/plain
|
res/cardsfolder/m/mana_matrix.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/m/mana_maze.txt -text
|
||||||
res/cardsfolder/m/mana_prism.txt svneol=native#text/plain
|
res/cardsfolder/m/mana_prism.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/mana_seism.txt -text
|
res/cardsfolder/m/mana_seism.txt -text
|
||||||
res/cardsfolder/m/mana_severance.txt svneol=native#text/plain
|
res/cardsfolder/m/mana_severance.txt svneol=native#text/plain
|
||||||
|
|||||||
9
res/cardsfolder/m/mana_maze.txt
Normal file
9
res/cardsfolder/m/mana_maze.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Name:Mana Maze
|
||||||
|
ManaCost:1 U
|
||||||
|
Types:Enchantment
|
||||||
|
S:Mode$ CantBeCast | ValidCard$ Card.SharesColorWith LastCastThisTurn | Description$ Players can't cast spells that share a color with the spell most recently cast this turn.
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:RemRandomDeck:True
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/mana_maze.jpg
|
||||||
|
Oracle:Players can't cast spells that share a color with the spell most recently cast this turn.
|
||||||
|
SetInfo:INV Rare
|
||||||
@@ -5647,6 +5647,11 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
byte mask = CardFactoryUtil.getMostProminentColors(getGame().getCardsIn(ZoneType.Battlefield));
|
byte mask = CardFactoryUtil.getMostProminentColors(getGame().getCardsIn(ZoneType.Battlefield));
|
||||||
if( !CardUtil.getColors(this).hasAnyColor(mask))
|
if( !CardUtil.getColors(this).hasAnyColor(mask))
|
||||||
return false;
|
return false;
|
||||||
|
} else if (restriction.equals("LastCastThisTurn")) {
|
||||||
|
final List<Card> c = source.getGame().getStack().getCardsCastThisTurn();
|
||||||
|
if (c.isEmpty() || !this.sharesColorWith(c.get(c.size() - 1))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
for (final Card card : sourceController.getCardsIn(ZoneType.Battlefield)) {
|
for (final Card card : sourceController.getCardsIn(ZoneType.Battlefield)) {
|
||||||
if (card.isValid(restriction, sourceController, source) && this.sharesColorWith(card)) {
|
if (card.isValid(restriction, sourceController, source) && this.sharesColorWith(card)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user