From a23d06b8c45f93b442f33516967979276101202b Mon Sep 17 00:00:00 2001 From: Hanmac Date: Fri, 2 Dec 2016 07:38:36 +0000 Subject: [PATCH] SpellAbilityRestriction: fixed Affected and revert Melek --- .../java/forge/game/spellability/SpellAbilityRestriction.java | 2 +- forge-gui/res/cardsfolder/m/melek_izzet_paragon.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/forge-game/src/main/java/forge/game/spellability/SpellAbilityRestriction.java b/forge-game/src/main/java/forge/game/spellability/SpellAbilityRestriction.java index 98bcc9b7183..383412fb29c 100644 --- a/forge-game/src/main/java/forge/game/spellability/SpellAbilityRestriction.java +++ b/forge-game/src/main/java/forge/game/spellability/SpellAbilityRestriction.java @@ -232,7 +232,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables { Map params = sa.getMayPlay().getMapParams(); if (params.containsKey("Affected")) { - if (!cp.isValid(params.get("Affected"), activator, o.getHost(), null)) { + if (!cp.isValid(params.get("Affected").split(","), activator, o.getHost(), null)) { return false; } } diff --git a/forge-gui/res/cardsfolder/m/melek_izzet_paragon.txt b/forge-gui/res/cardsfolder/m/melek_izzet_paragon.txt index 7d93174306f..c1fff7a3dfd 100644 --- a/forge-gui/res/cardsfolder/m/melek_izzet_paragon.txt +++ b/forge-gui/res/cardsfolder/m/melek_izzet_paragon.txt @@ -3,9 +3,9 @@ ManaCost:4 U R Types:Legendary Creature Weird Wizard PT:2/4 S:Mode$ Continuous | Affected$ Card.TopLibrary+YouCtrl | AffectedZone$ Library | MayLookAt$ True | AddHiddenKeyword$ Your opponent may look at this card. | Description$ Play with the top card of your library revealed. -S:Mode$ Continuous | Affected$ Instant.TopLibrary+YouCtrl | AffectedZone$ Library | EffectZone$ Battlefield | MayPlay$ True | Description$ You may cast the top card of your library if it's an instant or sorcery card. -S:Mode$ Continuous | Affected$ Sorcery.TopLibrary+YouCtrl | AffectedZone$ Library | EffectZone$ Battlefield | MayPlay$ True | Description$ You may cast the top card of your library if it's an instant or sorcery card. +S:Mode$ Continuous | Affected$ Instant.TopLibrary+YouCtrl,Sorcery.TopLibrary+YouCtrl | AffectedZone$ Library | EffectZone$ Battlefield | MayPlay$ True | Description$ You may cast the top card of your library if it's an instant or sorcery card. T:Mode$ SpellCast | ValidCard$ Instant.wasCastFromLibrary,Sorcery.wasCastFromLibrary | ValidActivatingPlayer$ You | Execute$ TrigCopy | TriggerZones$ Battlefield | TriggerDescription$ Whenever you cast an instant or sorcery spell from your library, copy it. You may choose new targets for this copy. SVar:TrigCopy:AB$ CopySpellAbility | Cost$ 0 | Defined$ TriggeredSpellAbility +DeckNeeds:Type$Instant|Sorcery SVar:Picture:http://www.wizards.com/global/images/magic/general/melek_izzet_paragon.jpg Oracle:Play with the top card of your library revealed.\nYou may cast the top card of your library if it's an instant or sorcery card.\nWhenever you cast an instant or sorcery spell from your library, copy it. You may choose new targets for the copy.