Restore fixes somehow dropped by 017a4c (#2108)

This commit is contained in:
tool4ever
2022-12-15 16:03:54 +01:00
committed by GitHub
parent d7ea64ef85
commit 9804d0bb55
3 changed files with 7 additions and 3 deletions

View File

@@ -1896,9 +1896,12 @@ public class CardProperty {
}
} else if (property.startsWith("set")) {
final String setCode = property.substring(3, 6);
if (card.getName().isEmpty()) {
return false;
}
final PaperCard setCard = StaticData.instance().getCommonCards().getCardFromEditions(card.getName(),
CardDb.CardArtPreference.ORIGINAL_ART_ALL_EDITIONS);
if (!setCard.getEdition().equals(setCode)) {
CardDb.CardArtPreference.ORIGINAL_ART_ALL_EDITIONS);
if (setCard != null && !setCard.getEdition().equals(setCode)) {
return false;
}
} else if (property.startsWith("inZone")) {

View File

@@ -200,6 +200,7 @@ public class AbilityManaPart implements java.io.Serializable {
final Map<AbilityKey, Object> runParams = AbilityKey.mapFromCard(getSourceCard());
runParams.put(AbilityKey.Produced, mana);
runParams.put(AbilityKey.AbilityMana, root);
runParams.put(AbilityKey.Activator, root.getActivatingPlayer());
getSourceCard().getGame().getTriggerHandler().runTrigger(TriggerType.TapsForMana, runParams, false);

View File

@@ -2,7 +2,7 @@ Name:City in a Bottle
ManaCost:2
Types:Artifact
T:Mode$ Always | TriggerZones$ Battlefield | IsPresent$ Permanent.nonToken+setARN+Other | Execute$ TrigSac | TriggerDescription$ Whenever one or more other nontoken permanents with a name originally printed in the Arabian Nights expansion are on the battlefield, their controllers sacrifice them.
SVar:TrigSac:DB$ SacrificeAll | ValidCards$ Permanent.nontoken+setARN+Other
SVar:TrigSac:DB$ SacrificeAll | ValidCards$ Permanent.nonToken+setARN+Other
S:Mode$ CantPlayLand | ValidCard$ Card.setARN | Description$ Players can't cast spells or play lands with a name originally printed in the Arabian Nights expansion.
S:Mode$ CantBeCast | ValidCard$ Card.setARN
AI:RemoveDeck:All