Added Aboroth, Avizo, Benediction of Moons and Infernal Tribute

This commit is contained in:
Styxo 2016-11-10 09:00:37 +01:00
parent a5b89b9e0f
commit d291c289b8
8 changed files with 571 additions and 227 deletions

View file

@ -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();
}
}