reoder the cases to be more logical

master
melvin 2013-07-10 20:39:28 +08:00
parent 223140f513
commit 1ca31083fc
1 changed files with 6 additions and 6 deletions

View File

@ -41,6 +41,9 @@ public class MagicPlayCardAction extends MagicPutIntoPlayAction {
final MagicPermanent permanent=game.createPermanent(card,controller);
for (final MagicPlayMod modification : modifications) {
switch (modification) {
case UNDYING:
permanent.changeCounters(MagicCounterType.PlusOne,1);
break;
case PERSIST:
permanent.changeCounters(MagicCounterType.MinusOne,1);
break;
@ -53,6 +56,9 @@ public class MagicPlayCardAction extends MagicPutIntoPlayAction {
case SACRIFICE_AT_END_OF_TURN:
permanent.setState(MagicPermanentState.SacrificeAtEndOfTurn);
break;
case EXILE_AT_END_OF_COMBAT:
permanent.setState(MagicPermanentState.ExileAtEndOfCombat);
break;
case ATTACKING:
permanent.setState(MagicPermanentState.Attacking);
break;
@ -65,18 +71,12 @@ public class MagicPlayCardAction extends MagicPutIntoPlayAction {
case HASTE:
game.doAction(new MagicGainAbilityAction(permanent, MagicAbility.Haste, MagicStatic.Forever));
break;
case UNDYING:
permanent.changeCounters(MagicCounterType.PlusOne,1);
break;
case BLACK:
game.doAction(new MagicAddStaticAction(permanent, MagicStatic.Black));
break;
case ZOMBIE:
game.doAction(new MagicAddStaticAction(permanent, MagicStatic.Zombie));
break;
case EXILE_AT_END_OF_COMBAT:
permanent.setState(MagicPermanentState.ExileAtEndOfCombat);
break;
}
}
return permanent;