mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Added Mystic Barrier
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
12
forge-gui/res/cardsfolder/m/mystic_barrier.txt
Normal file
12
forge-gui/res/cardsfolder/m/mystic_barrier.txt
Normal 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.
|
||||
Reference in New Issue
Block a user