mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Mirari - Fixed that it can select any spell instead triggered use.
This commit is contained in:
parent
9d7c59fed9
commit
e5bdb85076
3 changed files with 32 additions and 14 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
|
@ -13,7 +12,6 @@ import mage.players.Player;
|
|||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*
|
||||
*/
|
||||
public class CopyTargetSpellEffect extends OneShotEffect {
|
||||
|
||||
|
|
@ -79,7 +77,14 @@ public class CopyTargetSpellEffect extends OneShotEffect {
|
|||
return staticText;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("copy target ").append(mode.getTargets().get(0).getTargetName()).append(". You may choose new targets for the copy");
|
||||
sb.append("copy ");
|
||||
if (!mode.getTargets().isEmpty()) {
|
||||
sb.append("target ").append(mode.getTargets().get(0).getTargetName());
|
||||
} else {
|
||||
sb.append("that spell");
|
||||
}
|
||||
sb.append(". You may choose new targets for the copy");
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
package mage.abilities.effects.common;
|
||||
|
||||
import java.util.Locale;
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
|
|
@ -14,6 +13,8 @@ import mage.game.Game;
|
|||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class DoIfCostPaid extends OneShotEffect {
|
||||
|
||||
protected Effects executingEffects = new Effects();
|
||||
|
|
@ -27,9 +28,10 @@ public class DoIfCostPaid extends OneShotEffect {
|
|||
}
|
||||
|
||||
public DoIfCostPaid(Effect effect, Effect effect2, Cost cost) {
|
||||
this(effect,effect2,cost,true);
|
||||
this(effect, effect2, cost, true);
|
||||
}
|
||||
public DoIfCostPaid(Effect effect, Effect effect2, Cost cost,boolean optional) {
|
||||
|
||||
public DoIfCostPaid(Effect effect, Effect effect2, Cost cost, boolean optional) {
|
||||
this(effect, cost, null, optional);
|
||||
this.otherwiseEffects.add(effect2);
|
||||
}
|
||||
|
|
@ -62,6 +64,14 @@ public class DoIfCostPaid extends OneShotEffect {
|
|||
return this;
|
||||
}
|
||||
|
||||
public Effects getExecutingEffects() {
|
||||
return this.executingEffects;
|
||||
}
|
||||
|
||||
public Effects getOtherwiseEffects() {
|
||||
return this.otherwiseEffects;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = getPayingPlayer(game, source);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue