1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-08 01:01:04 -09:00

GameEvent: remove TRANSFORM which is no longer used, and UNFLIP which is explicitly impossible under the rules

This commit is contained in:
Alex W. Jackson 2022-10-30 04:05:27 -04:00
parent 414613623a
commit a01c1077ad
3 changed files with 2 additions and 18 deletions
Mage/src/main/java/mage/game

View file

@ -342,8 +342,7 @@ public class GameEvent implements Serializable {
*/ */
UNTAP, UNTAPPED, UNTAP, UNTAPPED,
FLIP, FLIPPED, FLIP, FLIPPED,
UNFLIP, UNFLIPPED, TRANSFORMING, TRANSFORMED,
TRANSFORM, TRANSFORMING, TRANSFORMED,
ADAPT, ADAPT,
BECOMES_MONSTROUS, BECOMES_MONSTROUS,
/* BECOMES_EXERTED /* BECOMES_EXERTED

View file

@ -43,8 +43,6 @@ public interface Permanent extends Card, Controllable {
boolean isFlipped(); boolean isFlipped();
boolean unflip(Game game);
boolean flip(Game game); boolean flip(Game game);
boolean transform(Ability source, Game game); boolean transform(Ability source, Game game);

View file

@ -565,18 +565,6 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
return flipped; return flipped;
} }
@Override
public boolean unflip(Game game) {
if (flipped) {
if (!replaceEvent(EventType.UNFLIP, game)) {
this.flipped = false;
fireEvent(EventType.UNFLIPPED, game);
return true;
}
}
return false;
}
@Override @Override
public boolean flip(Game game) { public boolean flip(Game game) {
if (!flipped) { if (!flipped) {
@ -618,8 +606,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|| (!ignoreDayNight && this.checkDayNightBound()) || (!ignoreDayNight && this.checkDayNightBound())
|| this.getOtherFace().isInstantOrSorcery() || this.getOtherFace().isInstantOrSorcery()
|| !this.checkTransformRestrictionEffects(game) || !this.checkTransformRestrictionEffects(game)
|| (source != null && !source.checkTransformCount(this, game)) || (source != null && !source.checkTransformCount(this, game))) {
|| this.replaceEvent(EventType.TRANSFORM, game)) {
return false; return false;
} }
if (this.transformed) { if (this.transformed) {