Fix ixalans_binding using Static+ExiledWith

This commit is contained in:
Hans Mackowiak
2021-02-21 10:45:59 +01:00
parent 9f5fd3f35f
commit ab5eb24d7a
2 changed files with 2 additions and 3 deletions

View File

@@ -966,7 +966,7 @@ public class CardProperty {
final String restriction = property.split("sharesControllerWith ")[1]; final String restriction = property.split("sharesControllerWith ")[1];
if (restriction.startsWith("Remembered") || restriction.startsWith("Imprinted")) { if (restriction.startsWith("Remembered") || restriction.startsWith("Imprinted")) {
CardCollection list = AbilityUtils.getDefinedCards(source, restriction, spellAbility); CardCollection list = AbilityUtils.getDefinedCards(source, restriction, spellAbility);
return !CardLists.filter(list, CardPredicates.sharesControllerWith(card)).isEmpty(); return Iterables.any(list, CardPredicates.sharesControllerWith(card));
} }
} }
} else if (property.startsWith("sharesOwnerWith")) { } else if (property.startsWith("sharesOwnerWith")) {

View File

@@ -3,8 +3,7 @@ ManaCost:3 W
Types:Enchantment Types:Enchantment
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigExile | TriggerDescription$ When CARDNAME enters the battlefield, exile target nonland permanent an opponent controls until CARDNAME leaves the battlefield. T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigExile | TriggerDescription$ When CARDNAME enters the battlefield, exile target nonland permanent an opponent controls until CARDNAME leaves the battlefield.
SVar:TrigExile:DB$ ChangeZone | Origin$ Battlefield | Destination$ Exile | ValidTgts$ Permanent.nonLand+OppCtrl | TgtPrompt$ Select target nonland permanent an opponent controls | UntilHostLeavesPlay$ True SVar:TrigExile:DB$ ChangeZone | Origin$ Battlefield | Destination$ Exile | ValidTgts$ Permanent.nonLand+OppCtrl | TgtPrompt$ Select target nonland permanent an opponent controls | UntilHostLeavesPlay$ True
# TODO make ExiledWith work there S:Mode$ CantBeCast | ValidCard$ Card.sharesNameWith ExiledWith | Caster$ Opponent | Description$ Your opponents can't cast spells with the same name as the exiled card.
SVar:NoCast:Mode$ CantBeCast | EffectZone$ Command | ValidCard$ Card.sharesNameWith ExiledWith | Caster$ Opponent | Description$ Your opponents can't cast spells with the same name as the exiled card.
SVar:PlayMain1:TRUE SVar:PlayMain1:TRUE
SVar:OblivionRing:TRUE SVar:OblivionRing:TRUE
Oracle:When Ixalan's Binding enters the battlefield, exile target nonland permanent an opponent controls until Ixalan's Binding leaves the battlefield.\nYour opponents can't cast spells with the same name as the exiled card. Oracle:When Ixalan's Binding enters the battlefield, exile target nonland permanent an opponent controls until Ixalan's Binding leaves the battlefield.\nYour opponents can't cast spells with the same name as the exiled card.