SpellAbilityRestriction: fixed Affected and revert Melek

This commit is contained in:
Hanmac
2016-12-02 07:38:36 +00:00
parent 7eb9c1e32e
commit a23d06b8c4
2 changed files with 3 additions and 3 deletions

View File

@@ -232,7 +232,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
Map<String,String> params = sa.getMayPlay().getMapParams(); Map<String,String> params = sa.getMayPlay().getMapParams();
if (params.containsKey("Affected")) { 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; return false;
} }
} }

View File

@@ -3,9 +3,9 @@ ManaCost:4 U R
Types:Legendary Creature Weird Wizard Types:Legendary Creature Weird Wizard
PT:2/4 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$ 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$ 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.
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.
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. 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 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 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. 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.