* Added Gangrenous Zombies and Lethal Vapor.

This commit is contained in:
LevelX2 2017-05-18 16:57:06 +02:00
parent 3fcf1e6610
commit 83cdd5570d
9 changed files with 405 additions and 242 deletions

View file

@ -5,7 +5,9 @@
*/
package mage.abilities.effects.common.turn;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.ActivatedAbilityImpl;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.game.Game;
@ -42,8 +44,15 @@ public class SkipNextTurnSourceEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
UUID playerId = null;
if (source instanceof ActivatedAbilityImpl) {
playerId = ((ActivatedAbilityImpl) source).getActivatorId();
}
if (playerId == null) {
playerId = source.getControllerId();
}
for (int i = 0; i < numberOfTurns; i++) {
game.getState().getTurnMods().add(new TurnMod(source.getControllerId(), true));
game.getState().getTurnMods().add(new TurnMod(playerId, true));
}
return true;
}

View file

@ -35,6 +35,7 @@ public final class StaticFilters {
public static final FilterCard FILTER_CARD_ARTIFACT_OR_CREATURE = new FilterCard("artifact or creature card");
public static final FilterCreaturePermanent FILTER_PERMANENT_CREATURE = new FilterCreaturePermanent();
public static final FilterCreaturePermanent FILTER_PERMANENT_A_CREATURE = new FilterCreaturePermanent("a creature");
public static final FilterCreaturePermanent FILTER_PERMANENT_CREATURES = new FilterCreaturePermanent("creatures");
public static final FilterCreaturePermanent FILTER_PERMANENT_CREATURE_GOBLINS = new FilterCreaturePermanent("Goblin", "Goblin creatures");
public static final FilterCreaturePermanent FILTER_PERMANENT_CREATURE_SLIVERS = new FilterCreaturePermanent("Sliver", "Sliver creatures");