mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
- Fixed #6491
This commit is contained in:
parent
82032a686d
commit
11d449a242
1 changed files with 4 additions and 8 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.v;
|
package mage.cards.v;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -16,11 +15,10 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
import mage.filter.FilterOpponent;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.token.SurvivorToken;
|
import mage.game.permanent.token.SurvivorToken;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.TargetPlayer;
|
import mage.target.common.TargetOpponent;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -57,10 +55,8 @@ public final class VarchildsWarRiders extends CardImpl {
|
||||||
|
|
||||||
class OpponentCreateSurvivorTokenCost extends CostImpl {
|
class OpponentCreateSurvivorTokenCost extends CostImpl {
|
||||||
|
|
||||||
private static final FilterOpponent filter = new FilterOpponent();
|
|
||||||
|
|
||||||
public OpponentCreateSurvivorTokenCost() {
|
public OpponentCreateSurvivorTokenCost() {
|
||||||
this.text = "have an opponent create a 1/1 red Survivor creature token";
|
this.text = "Have an opponent create a 1/1 red Survivor creature token.";
|
||||||
}
|
}
|
||||||
|
|
||||||
public OpponentCreateSurvivorTokenCost(OpponentCreateSurvivorTokenCost cost) {
|
public OpponentCreateSurvivorTokenCost(OpponentCreateSurvivorTokenCost cost) {
|
||||||
|
@ -82,8 +78,8 @@ class OpponentCreateSurvivorTokenCost extends CostImpl {
|
||||||
public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana, Cost costToPay) {
|
public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana, Cost costToPay) {
|
||||||
Player controller = game.getPlayer(controllerId);
|
Player controller = game.getPlayer(controllerId);
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
TargetPlayer target = new TargetPlayer(1, 1, true, filter);
|
TargetOpponent target = new TargetOpponent();
|
||||||
if (controller.chooseTarget(Outcome.Detriment, target, ability, game)) {
|
if (controller.chooseTarget(Outcome.Neutral, target, ability, game)) {
|
||||||
Player opponent = game.getPlayer(target.getFirstTarget());
|
Player opponent = game.getPlayer(target.getFirstTarget());
|
||||||
if (opponent != null) {
|
if (opponent != null) {
|
||||||
Effect effect = new CreateTokenTargetEffect(new SurvivorToken());
|
Effect effect = new CreateTokenTargetEffect(new SurvivorToken());
|
||||||
|
|
Loading…
Reference in a new issue