diff --git a/.gitattributes b/.gitattributes index b392e66cdc1..1c5c5970d64 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantAttackBlock.java b/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantAttackBlock.java index 0423a4df998..04be9826689 100644 --- a/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantAttackBlock.java +++ b/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantAttackBlock.java @@ -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; } diff --git a/forge-gui/res/cardsfolder/m/mystic_barrier.txt b/forge-gui/res/cardsfolder/m/mystic_barrier.txt new file mode 100644 index 00000000000..66f653f78ec --- /dev/null +++ b/forge-gui/res/cardsfolder/m/mystic_barrier.txt @@ -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.