removed MagicVividLandTrigger, split into enters tapped and enters charged 2
parent
b4aee11d3f
commit
959fb499a3
|
@ -1,33 +0,0 @@
|
|||
package magic.model.trigger;
|
||||
|
||||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.action.MagicChangeCountersAction;
|
||||
import magic.model.action.MagicTapAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
public class MagicVividLandTrigger extends MagicWhenComesIntoPlayTrigger {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
permanent.getController(),
|
||||
new Object[]{permanent},
|
||||
this,
|
||||
permanent+" enters the battlefield tapped with two charge counters on it.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object[] data,final Object[] choices) {
|
||||
final MagicPermanent permanent=(MagicPermanent)data[0];
|
||||
game.doAction(new MagicTapAction(permanent,false));
|
||||
game.doAction(new MagicChangeCountersAction(permanent,MagicCounterType.Charge,2,false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean usesStack() {
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue