Fixed Mutavault (E.G. didn't gain abilities from Sliver)

This commit is contained in:
Plopman 2013-09-02 19:56:01 +02:00
parent b6285accde
commit 97018b1a4b
3 changed files with 3 additions and 4 deletions

View file

@ -74,9 +74,8 @@ class MutavaultToken extends Token {
public MutavaultToken() {
super("", "2/2 creature with all creature types");
cardType.add(CardType.CREATURE);
subtype.add("Changling");
subtype.add(ChangelingAbility.ALL_CREATURE_TYPE);
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(ChangelingAbility.getInstance());
}
}

View file

@ -44,7 +44,7 @@ import mage.abilities.StaticAbility;
* @author nantuko
*/
public class ChangelingAbility extends StaticAbility<ChangelingAbility> implements MageSingleton {
public static final String ALL_CREATURE_TYPE = "All Creature Type";
private static final ChangelingAbility fINSTANCE = new ChangelingAbility();
private Object readResolve() throws ObjectStreamException {

View file

@ -46,7 +46,7 @@ public class SubtypePredicate implements Predicate<MageObject> {
@Override
public boolean apply(MageObject input, Game game) {
if (input.getAbilities().contains(ChangelingAbility.getInstance())) {
if (input.getAbilities().contains(ChangelingAbility.getInstance()) || input.getSubtype().contains(ChangelingAbility.ALL_CREATURE_TYPE)) {
return true;
}