added Batterskull class
parent
6332a21f58
commit
0bd1e7f9bd
|
@ -0,0 +1,45 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.event.*;
|
||||
import magic.model.stack.*;
|
||||
import magic.model.choice.*;
|
||||
import magic.model.target.*;
|
||||
import magic.model.action.*;
|
||||
import magic.model.trigger.*;
|
||||
import magic.model.condition.*;
|
||||
import magic.model.*;
|
||||
|
||||
public class Batterskull {
|
||||
public static final MagicPermanentActivation RET = new MagicPermanentActivation(
|
||||
new MagicCondition[]{MagicManaCost.THREE.getCondition()},
|
||||
new MagicActivationHints(MagicTiming.Removal),
|
||||
"Return"
|
||||
) {
|
||||
|
||||
@Override
|
||||
public MagicEvent[] getCostEvent(final MagicSource source) {
|
||||
return new MagicEvent[]{new MagicPayManaCostEvent(source,source.getController(),MagicManaCost.THREE)};
|
||||
}
|
||||
|
||||
@Override
|
||||
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||||
return new MagicEvent(
|
||||
source,
|
||||
source.getController(),
|
||||
new Object[]{source},
|
||||
this,
|
||||
"Return Batterskull to its owner's hand.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object[] data,
|
||||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicRemoveFromPlayAction((MagicPermanent)data[0],MagicLocationType.OwnersHand));
|
||||
}
|
||||
};
|
||||
|
||||
public static final MagicTrigger LW = new MagicLivingWeaponTrigger();
|
||||
}
|
Loading…
Reference in New Issue