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

View file

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

View file

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

View file

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