mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Merge branch 'fall_from_favor' into 'master'
CMR: Fall from Favor and support See merge request core-developers/forge!3310
This commit is contained in:
@@ -631,6 +631,13 @@ public class StaticAbility extends CardTraitBase implements IIdentifiable, Clone
|
||||
}
|
||||
}
|
||||
|
||||
if (hasParam("UnlessDefinedPlayer")) {
|
||||
List<Player> players = AbilityUtils.getDefinedPlayers(hostCard, getParam("UnlessDefinedPlayer"), null);
|
||||
if (!players.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasParam("TopCardOfLibraryIs")) {
|
||||
if (controller.getCardsIn(ZoneType.Library).isEmpty()) {
|
||||
return false;
|
||||
|
||||
10
forge-gui/res/cardsfolder/upcoming/fall_from_favor.txt
Normal file
10
forge-gui/res/cardsfolder/upcoming/fall_from_favor.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
Name:Fall from Favor
|
||||
ManaCost:2 U
|
||||
Types:Enchantment Aura
|
||||
K:Enchant creature
|
||||
A:SP$ Attach | Cost$ 2 U | ValidTgts$ Creature | AILogic$ KeepTapped | AITgts$ Card.cmcGE2
|
||||
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigTap | TriggerDescription$ When CARDNAME enters the battlefield, tap enchanted creature and you become the monarch.
|
||||
SVar:TrigTap:DB$ Tap | Defined$ Enchanted | SubAbility$ DBMonarch
|
||||
SVar:DBMonarch:DB$ BecomeMonarch | Defined$ You
|
||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ CARDNAME doesn't untap during your untap step. | UnlessDefinedPlayer$ EnchantedController.isMonarch | Description$ Enchanted creature doesn't untap during its controller's untap step unless that player is the monarch.
|
||||
Oracle:Enchant creature\nWhen Fall from Favor enters the battlefield, tap enchanted creature and you become the monarch.\nEnchanted creature doesn't untap during its controller's untap step unless that player is the monarch.
|
||||
Reference in New Issue
Block a user