- Added Mystic Barrier

This commit is contained in:
swordshine
2014-06-10 13:46:54 +00:00
parent 3bab44c173
commit b77cebd9f1
3 changed files with 18 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -9029,6 +9029,7 @@ forge-gui/res/cardsfolder/m/myr_turbine.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/myr_welder.txt -text
forge-gui/res/cardsfolder/m/myrsmith.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/mysteries_of_the_deep.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/mystic_barrier.txt -text
forge-gui/res/cardsfolder/m/mystic_compass.txt -text
forge-gui/res/cardsfolder/m/mystic_crusader.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/mystic_decree.txt -text

View File

@@ -74,6 +74,11 @@ public class StaticAbilityCantAttackBlock {
return false;
}
}
if (params.containsKey("DefenderNotNearestToYouInChosenDirection")
&& hostCard.getChosenDirection() != null
&& defender.equals(hostCard.getGame().getNextPlayerAfter(card.getController(), hostCard.getChosenDirection()))) {
return false;
}
return true;
}

View File

@@ -0,0 +1,12 @@
Name:Mystic Barrier
ManaCost:4 W
Types:Enchantment
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigChooseDirection | TriggerDescription$ When CARDNAME enters the battlefield or at the beginning of your upkeep, choose left or right.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigChooseDirection | Secondary$ True | TriggerDescription$ When CARDNAME enters the battlefield or at the beginning of your upkeep, choose left or right.
SVar:TrigChooseDirection:AB$ ChooseDirection | Cost$ 0
S:Mode$ CantAttack | DefenderNotNearestToYouInChosenDirection$ True | Description$ Each player may attack only the opponent seated nearest him or her in the last chosen direction and planeswalkers controlled by that player.
SVar:RemRandomDeck:True
SVar:NonStackingEffect:True
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/mystic_barrier.jpg
Oracle:When Mystic Barrier enters the battlefield or at the beginning of your upkeep, choose left or right.\nEach player may attack only the opponent seated nearest him or her in the last chosen direction and planeswalkers controlled by that player.