mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
refactor: better naming for new duration, fixed description
This commit is contained in:
parent
a1ca4f5adc
commit
ce055a3bb3
3 changed files with 4 additions and 4 deletions
|
|
@ -95,7 +95,7 @@ class NikoLightOfHopeEffect extends OneShotEffect {
|
|||
FilterPermanent filter = new FilterPermanent("shards");
|
||||
filter.add(SubType.SHARD.getPredicate());
|
||||
for (Permanent copyTo : game.getBattlefield().getAllActivePermanents(filter, controller.getId(), game)) {
|
||||
game.copyPermanent(Duration.UntilTheNextEndStep, permanent, copyTo.getId(), source, new EmptyCopyApplier());
|
||||
game.copyPermanent(Duration.UntilNextEndStep, permanent, copyTo.getId(), source, new EmptyCopyApplier());
|
||||
}
|
||||
ExileZone exile = game.getExile().getExileZone(source.getSourceId());
|
||||
if (exile != null && !exile.isEmpty()) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue