singleton conditions to enum

This commit is contained in:
ingmargoudt 2017-04-05 19:02:16 +02:00
parent 809c8c97c9
commit fb9d713287
82 changed files with 196 additions and 242 deletions

View file

@ -36,7 +36,7 @@ public class FlipSourceEffect extends OneShotEffect {
Player controller = game.getPlayer(source.getControllerId());
if (permanent != null && controller != null) {
if (permanent.flip(game)) {
ContinuousEffect effect = new ConditionalContinuousEffect(new CopyTokenEffect(flipToken), FlippedCondition.getInstance(), "");
ContinuousEffect effect = new ConditionalContinuousEffect(new CopyTokenEffect(flipToken), FlippedCondition.instance, "");
game.addEffect(effect, source);
if (!game.isSimulation())
game.informPlayers(new StringBuilder(controller.getLogName()).append(" flips ").append(permanent.getName()).toString());