fixed Mythos of Snapdax text
package mage.cards.m;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.UUID;
-
import mage.abilities.Ability;
import mage.abilities.condition.CompoundCondition;
import mage.abilities.condition.Condition;
@@ -28,10 +24,12 @@ import mage.target.TargetPermanent;
import mage.target.common.TargetArtifactPermanent;
import mage.watchers.common.ManaSpentToCastWatcher;
+import java.util.HashSet;
+import java.util.Set;
+import java.util.UUID;
+
/**
- *
* @author Emigara
- *
*/
public class MythosOfSnapdax extends CardImpl {
@@ -50,9 +48,6 @@ public class MythosOfSnapdax extends CardImpl{
public MythosOfSnapdax copy() {
return new MythosOfSnapdax(this);
}
-
-
-
}
class MythosOfSnapdaxEffect extends OneShotEffect {
@@ -64,7 +59,9 @@ class MythosOfSnapdaxEffect extends OneShotEffect {
public MythosOfSnapdaxEffect() {
super(Outcome.Benefit);
- this.staticText = "For each player, you choose from among the permanents that player controls an artifact, a creature, an enchantment, and a planeswalker. Then each player sacrifices all other nonland permanents they control, If {B}{R} was spent to cast this spell, you choose the permanents for each player instead.";
+ this.staticText = "Each player chooses an artifact, a creature, an enchantment, and a planeswalker " +
+ "from among the nonland permanents they control, then sacrifices the rest. " +
+ "If {B}{R} was spent to cast this spell, you choose the permanents for each player instead.";
}
public MythosOfSnapdaxEffect(final MythosOfSnapdaxEffect effect) {
@@ -79,7 +76,9 @@ class MythosOfSnapdaxEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
- if (controller != null) {
+ if (controller == null) {
+ return false;
+ }
Set<Permanent> choosenPermanent = new HashSet<>();
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
Player player = game.getPlayer(playerId);
@@ -184,8 +183,6 @@ class MythosOfSnapdaxEffect extends OneShotEffect {
}
return true;
- }
- return false;
}
}
