- Added Mana Maze

This commit is contained in:
swordshine
2013-05-11 07:20:35 +00:00
parent ee0f3e04dc
commit 2b04071f93
3 changed files with 15 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -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_leech.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_seism.txt -text
res/cardsfolder/m/mana_severance.txt svneol=native#text/plain

View 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

View File

@@ -5647,6 +5647,11 @@ public class Card extends GameEntity implements Comparable<Card> {
byte mask = CardFactoryUtil.getMostProminentColors(getGame().getCardsIn(ZoneType.Battlefield));
if( !CardUtil.getColors(this).hasAnyColor(mask))
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 {
for (final Card card : sourceController.getCardsIn(ZoneType.Battlefield)) {
if (card.isValid(restriction, sourceController, source) && this.sharesColorWith(card)) {