mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Added Aboroth, Avizo, Benediction of Moons and Infernal Tribute
This commit is contained in:
parent
a5b89b9e0f
commit
d291c289b8
8 changed files with 571 additions and 227 deletions
|
|
@ -59,13 +59,18 @@ public class SkipNextPlayerUntapStepEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = null;
|
||||
if (targetPointer != null) {
|
||||
Player player = game.getPlayer(targetPointer.getFirst(game, source));
|
||||
if (player != null) {
|
||||
game.getState().getTurnMods().add(new TurnMod(player.getId(), PhaseStep.UNTAP));
|
||||
return true;
|
||||
if (targetPointer.getTargets(game, source).size() > 0) {
|
||||
player = game.getPlayer(targetPointer.getFirst(game, source));
|
||||
} else {
|
||||
player = game.getPlayer(source.getControllerId());
|
||||
}
|
||||
}
|
||||
if (player != null) {
|
||||
game.getState().getTurnMods().add(new TurnMod(player.getId(), PhaseStep.UNTAP));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -78,11 +83,10 @@ public class SkipNextPlayerUntapStepEffect extends OneShotEffect {
|
|||
public String getText(Mode mode) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (staticText.length() > 0) {
|
||||
sb.append(staticText);
|
||||
sb.append(staticText).append(" player skips his or her next untap step");
|
||||
} else {
|
||||
sb.append("target");
|
||||
sb.append("You skip your next untap step");
|
||||
}
|
||||
sb.append(" player skips his or her next untap step");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue