make inner classes static in ForetellAbility

This commit is contained in:
xenohedron 2024-02-17 02:44:38 -05:00
parent 0a5370cf27
commit 920d75377d
2 changed files with 8 additions and 10 deletions

View file

@ -90,13 +90,13 @@ public class ForetellAbility extends SpecialAction {
return " foretells a card from hand";
}
public class ForetellExileEffect extends OneShotEffect {
static class ForetellExileEffect extends OneShotEffect {
private final Card card;
String foretellCost;
String foretellSplitCost;
public ForetellExileEffect(Card card, String foretellCost, String foretellSplitCost) {
ForetellExileEffect(Card card, String foretellCost, String foretellSplitCost) {
super(Outcome.Neutral);
this.card = card;
this.foretellCost = foretellCost;
@ -150,9 +150,9 @@ public class ForetellAbility extends SpecialAction {
}
}
public class ForetellLookAtCardEffect extends AsThoughEffectImpl {
static class ForetellLookAtCardEffect extends AsThoughEffectImpl {
public ForetellLookAtCardEffect() {
ForetellLookAtCardEffect() {
super(AsThoughEffectType.LOOK_AT_FACE_DOWN, Duration.EndOfGame, Outcome.AIDontUseIt);
}
@ -190,7 +190,7 @@ public class ForetellAbility extends SpecialAction {
}
}
public class ForetellAddCostEffect extends ContinuousEffectImpl {
public static class ForetellAddCostEffect extends ContinuousEffectImpl {
private final MageObjectReference mor;
@ -297,12 +297,12 @@ public class ForetellAbility extends SpecialAction {
}
}
public class ForetellCostAbility extends SpellAbility {
static class ForetellCostAbility extends SpellAbility {
private String abilityName;
private SpellAbility spellAbilityToResolve;
public ForetellCostAbility(String foretellCost) {
ForetellCostAbility(String foretellCost) {
super(null, "Testing", Zone.EXILED, SpellAbilityType.BASE_ALTERNATE, SpellAbilityCastMode.NORMAL);
// Needed for Dream Devourer and Ethereal Valkyrie reducing the cost of a colorless CMC 2 or less spell to 0
// CardUtil.reduceCost returns an empty string in that case so we add a cost of 0 here
@ -457,8 +457,6 @@ public class ForetellAbility extends SpecialAction {
/**
* Used for split card in PlayerImpl method:
* getOtherUseableActivatedAbilities
*
* @param abilityName
*/
public void setAbilityName(String abilityName) {
this.abilityName = abilityName;