code style: eliminate unnecessary static imports (#10585)

* SacrificeTargetCost(StaticFilters)

* remove import static mage.constants.Outcome

* remove import static mage.constants.Duration

* remove other import static

* a few more sacrifice filters

* simpler constructors

* remove import static mage.filter

* remove a few more import static
This commit is contained in:
xenohedron 2023-07-08 13:08:28 -04:00 committed by GitHub
parent f6fdcb9d59
commit 0fa971514a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
259 changed files with 499 additions and 622 deletions

View file

@ -5,7 +5,6 @@ import mage.abilities.Ability;
import mage.abilities.Mode;
import mage.abilities.effects.PreventionEffectImpl;
import mage.constants.Duration;
import static mage.constants.Duration.EndOfTurn;
import mage.game.Game;
import mage.game.events.GameEvent;
@ -61,7 +60,7 @@ public class PreventDamageToSourceEffect extends PreventionEffectImpl {
sb.append("Prevent the next ").append(amountToPrevent).append(" damage that would be dealt to ");
}
sb.append("{this} ");
if (duration == EndOfTurn) {
if (duration == Duration.EndOfTurn) {
sb.append("this turn");
} else {
sb.append(duration.toString());