refactor: better naming for new duration, fixed description

This commit is contained in:
Oleg Agafonov 2024-10-06 12:59:27 +04:00
parent a1ca4f5adc
commit ce055a3bb3
3 changed files with 4 additions and 4 deletions

View file

@ -78,7 +78,7 @@ public class ContinuousEffectsList<T extends ContinuousEffect> extends ArrayList
T entry = i.next();
boolean canRemove;
switch (entry.getDuration()) {
case UntilTheNextEndStep:
case UntilNextEndStep:
canRemove = true;
break;
case UntilYourNextEndStep:
@ -192,7 +192,7 @@ public class ContinuousEffectsList<T extends ContinuousEffect> extends ArrayList
}
break;
case EndOfTurn:
case UntilTheNextEndStep:
case UntilNextEndStep:
// end of turn discards on cleanup steps
// 514.2
break;

View file

@ -13,7 +13,7 @@ public enum Duration {
EndOfTurn("until end of turn", true, true),
UntilYourNextTurn("until your next turn", true, true),
UntilYourNextEndStep("until your next end step", true, true),
UntilTheNextEndStep("until your next end step", true, true),
UntilNextEndStep("until the beginning of the next end step", true, true),
UntilEndCombatOfYourNextTurn("until end of combat on your next turn", true, true),
UntilYourNextUpkeepStep("until your next upkeep", true, true),
UntilEndOfYourNextTurn("until the end of your next turn", true, true),