mirror of
https://github.com/correl/mage.git
synced 2024-11-24 19:19:56 +00:00
GameEvent: remove TRANSFORM which is no longer used, and UNFLIP which is explicitly impossible under the rules
This commit is contained in:
parent
414613623a
commit
a01c1077ad
3 changed files with 2 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue