Mad Auntie should regenerate Goblin tribals (i.e., Boggart Shenanigans)

master
manve.herumedre 2013-07-04 15:43:29 -05:00
parent 42efd2cdcc
commit ed0d1c1a1c
2 changed files with 9 additions and 2 deletions

View File

@ -30,7 +30,7 @@
@Override @Override
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) { public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
final MagicTargetFilter<MagicPermanent> targetFilter = new MagicOtherPermanentTargetFilter( final MagicTargetFilter<MagicPermanent> targetFilter = new MagicOtherPermanentTargetFilter(
MagicTargetFilter.TARGET_GOBLIN_CREATURE, source); MagicTargetFilter.TARGET_GOBLIN_PERMANENT, source);
final MagicTargetChoice targetChoice = new MagicTargetChoice( final MagicTargetChoice targetChoice = new MagicTargetChoice(
targetFilter, true, MagicTargetHint.Positive, targetFilter, true, MagicTargetHint.Positive,
"another target Goblin"); "another target Goblin");

View File

@ -622,7 +622,14 @@ public interface MagicTargetFilter<T extends MagicTarget> {
MagicPermanentFilterImpl TARGET_GRIFFIN = Factory.creature(MagicSubType.Griffin, Control.Any); MagicPermanentFilterImpl TARGET_GRIFFIN = Factory.creature(MagicSubType.Griffin, Control.Any);
MagicPermanentFilterImpl TARGET_BIRD = Factory.creature(MagicSubType.Bird, Control.Any); MagicPermanentFilterImpl TARGET_BIRD = Factory.creature(MagicSubType.Bird, Control.Any);
MagicPermanentFilterImpl TARGET_GOBLIN_PERMANENT = new MagicPermanentFilterImpl() {
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicPermanent target) {
return (target.isCreature() || target.hasType(MagicType.Tribal)) &&
target.hasSubType(MagicSubType.Goblin);
}
};
MagicPermanentFilterImpl TARGET_GOBLIN_CREATURE = Factory.creature(MagicSubType.Goblin, Control.Any); MagicPermanentFilterImpl TARGET_GOBLIN_CREATURE = Factory.creature(MagicSubType.Goblin, Control.Any);
MagicPermanentFilterImpl TARGET_GOBLIN_YOU_CONTROL = Factory.creature(MagicSubType.Goblin, Control.You); MagicPermanentFilterImpl TARGET_GOBLIN_YOU_CONTROL = Factory.creature(MagicSubType.Goblin, Control.You);