mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed Mutavault (E.G. didn't gain abilities from Sliver)
This commit is contained in:
parent
b6285accde
commit
97018b1a4b
3 changed files with 3 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue