added enters charged, enters +1/+1, enters -1/-1, tap drain add mana

master
melvin 2011-11-21 22:08:13 +08:00
parent 770d42438a
commit b4aee11d3f
1 changed files with 26 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import magic.model.event.MagicPingActivation;
import magic.model.event.MagicLevelUpActivation; import magic.model.event.MagicLevelUpActivation;
import magic.model.event.MagicManaActivation; import magic.model.event.MagicManaActivation;
import magic.model.event.MagicTapManaActivation; import magic.model.event.MagicTapManaActivation;
import magic.model.event.MagicVividManaActivation;
import magic.model.event.MagicSacrificeTapManaActivation; import magic.model.event.MagicSacrificeTapManaActivation;
import magic.model.event.MagicGainActivation; import magic.model.event.MagicGainActivation;
@ -51,6 +52,7 @@ import magic.model.trigger.MagicDieDrawCardTrigger;
import magic.model.trigger.MagicThiefTrigger; import magic.model.trigger.MagicThiefTrigger;
import magic.model.trigger.MagicVeteranTrigger; import magic.model.trigger.MagicVeteranTrigger;
import magic.model.trigger.MagicFromGraveyardToLibraryTrigger; import magic.model.trigger.MagicFromGraveyardToLibraryTrigger;
import magic.model.trigger.MagicEntersChargedTrigger;
public enum MagicAbility { public enum MagicAbility {
@ -78,6 +80,24 @@ public enum MagicAbility {
card.add(MagicTappedIntoPlayTrigger.create()); card.add(MagicTappedIntoPlayTrigger.create());
} }
}, },
EntersCharged("enters charged", 0) {
public void addAbilityImpl(final MagicCardDefinition card, final String arg) {
final int n = Integer.parseInt(arg);
card.add(new MagicComesIntoPlayWithCounterTrigger(MagicCounterType.Charge,"charge",n));
}
},
EntersPlus("enters +1/+1", 0) {
public void addAbilityImpl(final MagicCardDefinition card, final String arg) {
final int n = Integer.parseInt(arg);
card.add(new MagicComesIntoPlayWithCounterTrigger(MagicCounterType.PlusOne,"+1/+1",n));
}
},
EntersMinus("enters -1/-1", 0) {
public void addAbilityImpl(final MagicCardDefinition card, final String arg) {
final int n = Integer.parseInt(arg);
card.add(new MagicComesIntoPlayWithCounterTrigger(MagicCounterType.MinusOne,"-1/-1",n));
}
},
EntersTappedUnlessTwo("enters tapped unless two", -10) { EntersTappedUnlessTwo("enters tapped unless two", -10) {
public void addAbilityImpl(final MagicCardDefinition card, final String arg) { public void addAbilityImpl(final MagicCardDefinition card, final String arg) {
card.add(MagicTappedIntoPlayUnlessTwoTrigger.create()); card.add(MagicTappedIntoPlayUnlessTwoTrigger.create());
@ -312,6 +332,12 @@ public enum MagicAbility {
card.add(new MagicTapManaActivation(manatype, manatype.size() - 1)); card.add(new MagicTapManaActivation(manatype, manatype.size() - 1));
} }
}, },
TapDrainAddMana("tap drain add mana",10) {
public void addAbilityImpl(final MagicCardDefinition card, final String arg) {
final List<MagicManaType> manatype = MagicManaType.getList(arg);
card.add(new MagicVividManaActivation(manatype));
}
},
SacAddManaAny("sac add mana any",10) { SacAddManaAny("sac add mana any",10) {
public void addAbilityImpl(final MagicCardDefinition card, final String arg) { public void addAbilityImpl(final MagicCardDefinition card, final String arg) {
card.add(new MagicSacrificeTapManaActivation(MagicManaType.ALL_TYPES)); card.add(new MagicSacrificeTapManaActivation(MagicManaType.ALL_TYPES));