mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Outlast: use Keyword for check (#5020)
This commit is contained in:
@@ -259,6 +259,8 @@ public class ForgeScript {
|
||||
return sa.isForetold();
|
||||
} else if (property.equals("Plotting")) {
|
||||
return sa.isPlotting();
|
||||
} else if (property.equals("Outlast")) {
|
||||
return sa.isOutlast();
|
||||
} else if (property.equals("Modal")) {
|
||||
return sa.getApi() == ApiType.Charm;
|
||||
} else if (property.equals("ClassLevelUp")) {
|
||||
|
||||
@@ -3255,7 +3255,6 @@ public class CardFactoryUtil {
|
||||
|
||||
final SpellAbility sa = AbilityFactory.getAbility(abilityStr.toString(), card);
|
||||
sa.setIntrinsic(intrinsic);
|
||||
sa.setAlternativeCost(AlternativeCost.Outlast);
|
||||
inst.addSpellAbility(sa);
|
||||
} else if (keyword.startsWith("Overload")) {
|
||||
final String[] k = keyword.split(":");
|
||||
|
||||
@@ -16,7 +16,6 @@ public enum AlternativeCost {
|
||||
MTMtE, // More Than Meets the Eye (Transformers Universes Beyond)
|
||||
Mutate,
|
||||
Offering,
|
||||
Outlast, // ActivatedAbility
|
||||
Overload,
|
||||
Prowl,
|
||||
Plotted,
|
||||
|
||||
@@ -1126,7 +1126,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
}
|
||||
|
||||
public boolean isOutlast() {
|
||||
return isAlternativeCost(AlternativeCost.Outlast);
|
||||
return isKeyword(Keyword.OUTLAST);
|
||||
}
|
||||
|
||||
public boolean isCraft() {
|
||||
|
||||
@@ -190,12 +190,6 @@ public class TriggerSpellAbilityCastOrCopy extends Trigger {
|
||||
}
|
||||
}
|
||||
|
||||
if (hasParam("Outlast")) {
|
||||
if (!spellAbility.isOutlast()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasParam("EternalizeOrEmbalm")) {
|
||||
if (!spellAbility.hasParam("Eternalize") && !spellAbility.hasParam("Embalm")) {
|
||||
return false;
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:W
|
||||
Types:Creature Human Soldier
|
||||
PT:1/2
|
||||
K:Outlast:2 W
|
||||
T:Mode$ AbilityCast | ValidCard$ Card.Self | ValidActivatingPlayer$ You | Outlast$ True | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ Whenever you activate CARDNAME's outlast ability, create a 1/1 white Warrior creature token.
|
||||
T:Mode$ AbilityCast | ValidCard$ Card.Self | ValidActivatingPlayer$ You | ValidSA$ Activated.Outlast | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ Whenever you activate CARDNAME's outlast ability, create a 1/1 white Warrior creature token.
|
||||
SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ w_1_1_warrior | TokenOwner$ You
|
||||
DeckHints:Ability$Counters
|
||||
DeckHas:Ability$Counters|Token
|
||||
|
||||
Reference in New Issue
Block a user