Starting out with a few cards missing from my Krenko EDH

I just found out about you guys' software this week, and am quickly falling in love. During the construction of my Krenko EDH deck, I found a few cards missing, and figured I'd take a crack at them. I started implementation on a couple cards, specifically Goblin Wizard and Magewright's Stone.
Wizard was pretty straightforward, I duplicated the triggered ability from Goblin Lackey, and made it an activated one. Can't seem to find its card number in The Dark set, though.
Magewright is another beast entirely. As far as I could find in other cards, there was no way to filter for a creature with a specific activated ability cost. I made a hack within the AbilityPredicate class that "works," but certainly isn't the solution.
Wizard was pretty straightforward, I duplicated the triggered ability from Goblin Lackey, and made it an activated one. Can't seem to find its card number in The Dark set, though.
Magewright is another beast entirely. As far as I could find in other cards, there was no way to filter for a creature with a specific activated ability cost. I made a hack within the AbilityPredicate class that "works," but certainly isn't the solution.
- Code: Select all
@Override
public boolean apply(MageObject input, Game game) {
Abilities<Ability> abilities;
if (input instanceof Card){
abilities = ((Card)input).getAbilities(game);
} else {
abilities = input.getAbilities();
}
for (Ability ability : abilities) {
if (abilityClass.equals(ability.getClass())) {
//Burseg Hack: Magewright's Stone [DIS] specifically looks for activated ability containing {T}
//As of 9/13/2015, no other AbilityPredicate is filtering for SimpleActivatedAbility
if (abilityClass.equals(SimpleActivatedAbility.class) && ability.getCosts().size() > 0){
for (Cost cost : ability.getCosts()) {
if (cost instanceof TapSourceCost) {
return true;
}
}
return false;
} else {
return true;
}
}
}
return false;
}