small requested fixes on new cards

This commit is contained in:
Susucre 2024-06-07 17:35:18 +02:00
parent be58777f7b
commit 9eeae92cea
3 changed files with 19 additions and 16 deletions

View file

@ -14,8 +14,8 @@ import mage.constants.Outcome;
import mage.constants.SubType;
import mage.counters.Counter;
import mage.counters.CounterType;
import mage.filter.FilterOpponent;
import mage.filter.FilterPermanent;
import mage.filter.FilterPlayer;
import mage.filter.common.FilterPermanentOrPlayer;
import mage.filter.predicate.mageobject.AnotherPredicate;
import mage.game.Game;
@ -68,8 +68,8 @@ class EtchedSlithPutWhenDoEffect extends OneShotEffect {
private static final FilterPermanentOrPlayer filter =
new FilterPermanentOrPlayer(
"another target permanent or player",
filterPermanent, new FilterPlayer()
"another target permanent or opponent",
filterPermanent, new FilterOpponent()
);
EtchedSlithPutWhenDoEffect() {

View file

@ -49,24 +49,30 @@ public final class GenkuFutureShaper extends CardImpl {
// Whenever another nontoken permanent you control leaves the battlefield, choose one that hasn't been chosen this turn. Create a creature token with those characteristics.
// * 2/2 white Fox with vigilance.
// * 1/2 blue Moonfolk with flying.
// * 1/1 black Rat with lifelink.
Ability ability = new LeavesBattlefieldAllTriggeredAbility(
new CreateTokenEffect(new Fox22VigilanceToken()), filter, false
new CreateTokenEffect(new Fox22VigilanceToken())
.setText("2/2 white Fox with vigilance"),
filter, false
);
ability.setModeTag("2/2 white Fox with vigilance");
ability.getModes().setLimitUsageByOnce(true);
// Create a tapped Treasure token.
// * 1/2 blue Moonfolk with flying.
ability.addMode(
new Mode(new CreateTokenEffect(new Moonfolk12FlyingToken()))
.setModeTag("1/2 blue Moonfolk with flying")
new Mode(
new CreateTokenEffect(new Moonfolk12FlyingToken())
.setText("1/2 blue Moonfolk with flying")
).setModeTag("1/2 blue Moonfolk with flying")
);
// You gain 2 life.
// * 1/1 black Rat with lifelink.
ability.addMode(
new Mode(new CreateTokenEffect(new Rat11LifelinkToken()))
.setModeTag("1/1 black Rat with lifelink")
new Mode(
new CreateTokenEffect(new Rat11LifelinkToken())
.setText("1/1 black Rat with flying")
).setModeTag("1/1 black Rat with lifelink")
);
ability.getModes().setChooseText("choose one that hasn't been chosen this turn. Create a creature token with those characteristics.");
ability.addHint(ModesAlreadyUsedHint.instance);
this.addAbility(ability);

View file

@ -88,10 +88,7 @@ class KozilekTheBrokenRealityEffect extends OneShotEffect {
boolean result = false;
int toDraw = 0;
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
if (!getTargetPointer().getTargets(game, source).contains(playerId)) {
continue;
}
for (UUID playerId : getTargetPointer().getTargets(game, source)) {
Player player = game.getPlayer(playerId);
if (player == null) {
continue;