mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
CardFactoryUtil: added Equip Flag back for AltCost
This commit is contained in:
@@ -2898,7 +2898,7 @@ public class CardFactoryUtil {
|
|||||||
abilityStr.append("| ValidTgts$ ").append(valid);
|
abilityStr.append("| ValidTgts$ ").append(valid);
|
||||||
abilityStr.append(" | TgtPrompt$ Select target ").append(vstr).append(" you control ");
|
abilityStr.append(" | TgtPrompt$ Select target ").append(vstr).append(" you control ");
|
||||||
// the if the Equipment can really attach should be part of the Attach Effect
|
// 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
|
// add AttachAi for some special cards
|
||||||
if (card.hasSVar("AttachAi")) {
|
if (card.hasSVar("AttachAi")) {
|
||||||
abilityStr.append("| ").append(card.getSVar("AttachAi"));
|
abilityStr.append("| ").append(card.getSVar("AttachAi"));
|
||||||
|
|||||||
@@ -1134,7 +1134,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
|||||||
return isKeyword(Keyword.CREW);
|
return isKeyword(Keyword.CREW);
|
||||||
}
|
}
|
||||||
public boolean isEquip() {
|
public boolean isEquip() {
|
||||||
return isKeyword(Keyword.EQUIP);
|
return isKeyword(Keyword.EQUIP) || hasParam("Equip");
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isChapter() {
|
public boolean isChapter() {
|
||||||
|
|||||||
Reference in New Issue
Block a user