mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Restore fixes somehow dropped by 017a4c (#2108)
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user