CardFactoryUtil: added Equip Flag back for AltCost

This commit is contained in:
Hans Mackowiak
2024-05-15 08:00:58 +02:00
parent 503b83857b
commit 41f9c33475
2 changed files with 2 additions and 2 deletions

View File

@@ -2898,7 +2898,7 @@ public class CardFactoryUtil {
abilityStr.append("| ValidTgts$ ").append(valid);
abilityStr.append(" | TgtPrompt$ Select target ").append(vstr).append(" you control ");
// the if the Equipment can really attach should be part of the Attach Effect
abilityStr.append("| SorcerySpeed$ True | AILogic$ Pump");
abilityStr.append("| SorcerySpeed$ True | Equip$ True | AILogic$ Pump");
// add AttachAi for some special cards
if (card.hasSVar("AttachAi")) {
abilityStr.append("| ").append(card.getSVar("AttachAi"));

View File

@@ -1134,7 +1134,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
return isKeyword(Keyword.CREW);
}
public boolean isEquip() {
return isKeyword(Keyword.EQUIP);
return isKeyword(Keyword.EQUIP) || hasParam("Equip");
}
public boolean isChapter() {