From 231f2fc6da2ff65c2fcd2a75cec7c0ffbd3d913c Mon Sep 17 00:00:00 2001 From: slapshot5 Date: Mon, 26 Dec 2011 23:04:44 +0000 Subject: [PATCH] various comment cleanups in PlayerZoneComesIntoPlay and AbilityFactoryZoneAffecting --- .../java/forge/PlayerZoneComesIntoPlay.java | 29 ++++--------------- .../AbilityFactoryZoneAffecting.java | 2 +- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/src/main/java/forge/PlayerZoneComesIntoPlay.java b/src/main/java/forge/PlayerZoneComesIntoPlay.java index 4c2320e51f8..29c81ae4ba6 100644 --- a/src/main/java/forge/PlayerZoneComesIntoPlay.java +++ b/src/main/java/forge/PlayerZoneComesIntoPlay.java @@ -27,7 +27,7 @@ import forge.card.staticability.StaticAbility; /** *

- * PlayerZone_ComesIntoPlay class. + * PlayerZoneComesIntoPlay class. *

* * @author Forge @@ -42,7 +42,7 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone { /** *

- * Constructor for PlayerZone_ComesIntoPlay. + * Constructor for PlayerZoneComesIntoPlay. *

* * @param zone @@ -58,7 +58,7 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone { @Override public final void add(final Object o) { if (o == null) { - throw new RuntimeException("PlayerZone_ComesInto Play : add() object is null"); + throw new RuntimeException("PlayerZoneComesInto Play : add() object is null"); } super.add(o); @@ -126,12 +126,6 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone { if (c.isLand()) { CardList list = c.getController().getCardsIn(Zone.Battlefield); - /* - * CardList listValakut = list.filter(new CardListFilter() { - * public boolean addCard(Card c) { return - * c.getName().contains("Valakut, the Molten Pinnacle"); } }); - */ - list = list.filter(new CardListFilter() { @Override public boolean addCard(final Card c) { @@ -144,14 +138,6 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone { for (int i = 0; i < list.size(); i++) { GameActionUtil.executeLandfallEffects(list.get(i)); } - /* - * // Check for a mountain if (!listValakut.isEmpty() && - * c.isType("Mountain") ) { for (int i = 0; i < - * listValakut.size(); i++) { boolean b = - * GameActionUtil.executeValakutEffect(listValakut.get(i),c); if - * (!b) { // Not enough mountains to activate Valakut -- stop - * the loop break; } } } - */ // Tectonic Instability final CardList tis = AllZoneUtil.getCardsIn(Zone.Battlefield, "Tectonic Instability"); @@ -306,13 +292,8 @@ public class PlayerZoneComesIntoPlay extends DefaultPlayerZone { for (final String effect : effects) { tempEffect = effect; AllZone.getStaticEffects().removeStateBasedEffect(effect); - final Command comm = GameActionUtil.getCommands().get(tempEffect); // this - // is to - // make - // sure - // cards - // reset - // correctly + // this is to make sure cards reset correctly + final Command comm = GameActionUtil.getCommands().get(tempEffect); comm.execute(); } diff --git a/src/main/java/forge/card/abilityfactory/AbilityFactoryZoneAffecting.java b/src/main/java/forge/card/abilityfactory/AbilityFactoryZoneAffecting.java index ddc07b3fc75..aa40ce23c99 100644 --- a/src/main/java/forge/card/abilityfactory/AbilityFactoryZoneAffecting.java +++ b/src/main/java/forge/card/abilityfactory/AbilityFactoryZoneAffecting.java @@ -1477,7 +1477,7 @@ public class AbilityFactoryZoneAffecting { * @param af * a {@link forge.card.abilityfactory.AbilityFactory} object. * @param sa - * TODO + * a {@link forge.card.spellability.SpellAbility} object. * @return a boolean. */ private static boolean discardTargetAI(final AbilityFactory af, final SpellAbility sa) {