mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
some requested fixes
This commit is contained in:
parent
8a71939e78
commit
d13d9ac934
3 changed files with 33 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ import mage.filter.predicate.Predicates;
|
|||
import mage.filter.predicate.mageobject.NamePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.token.OozeToken;
|
||||
import mage.game.permanent.token.OozeTrampleToken;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.players.Player;
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ class SlimeAgainstHumanityEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Token token = new OozeToken(0, 0);
|
||||
Token token = new OozeTrampleToken();
|
||||
token.putOntoBattlefield(1, game, source);
|
||||
int graveCount = Optional
|
||||
.ofNullable(game.getPlayer(source.getControllerId()))
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ enum TreacherousGreedPredicate implements Predicate<Permanent> {
|
|||
|
||||
@Override
|
||||
public boolean apply(Permanent input, Game game) {
|
||||
return false;
|
||||
return TreacherousGreedWatcher.checkCreature(input, game);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OozeTrampleToken extends TokenImpl {
|
||||
|
||||
public OozeTrampleToken() {
|
||||
super("Ooze Token", "0/0 green Ooze creature token with trample");
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.OOZE);
|
||||
color.setGreen(true);
|
||||
power = new MageInt(0);
|
||||
toughness = new MageInt(0);
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
}
|
||||
|
||||
private OozeTrampleToken(final OozeTrampleToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public OozeTrampleToken copy() {
|
||||
return new OozeTrampleToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue