- CheckStyle.

This commit is contained in:
Chris
2012-11-21 15:00:55 +00:00
parent 4160d8837b
commit 83e82192aa
19 changed files with 125 additions and 130 deletions

View File

@@ -27,7 +27,6 @@ public class DamageAllEffect extends SpellEffect {
final int dmg = AbilityFactory.calculateAmount(sa.getSourceCard(), damage, sa);
final ArrayList<Card> definedSources = AbilityFactory.getDefinedCards(sa.getSourceCard(), sa.getParam("DamageSource"), sa);
final Card source = definedSources.get(0);

View File

@@ -10,8 +10,8 @@ import forge.card.abilityfactory.SpellEffect;
import forge.card.spellability.SpellAbility;
import forge.game.player.Player;
public class DamagePreventEffect extends SpellEffect
{
public class DamagePreventEffect extends SpellEffect {
@Override
protected String getStackDescription(SpellAbility sa) {
final StringBuilder sb = new StringBuilder();

View File

@@ -29,7 +29,6 @@ public class DigEffect extends SpellEffect {
final int numToDig = AbilityFactory.calculateAmount(host, sa.getParam("DigNum"), sa);
final List<Player> tgtPlayers = getTargetPlayers(sa);
sb.append(host.getController()).append(" looks at the top ").append(numToDig);
sb.append(" card");
if (numToDig != 1) {

View File

@@ -17,7 +17,6 @@ import forge.gui.GuiChoose;
public class DigUntilEffect extends SpellEffect {
/* (non-Javadoc)
* @see forge.card.abilityfactory.SpellEffect#getStackDescription(java.util.Map, forge.card.spellability.SpellAbility)
*/

View File

@@ -27,7 +27,6 @@ public class DiscardEffect extends RevealEffectBase {
final List<Player> tgtPlayers = getTargetPlayers(sa);
final String conditionDesc = sa.getParam("ConditionDescription");
if (conditionDesc != null) {
sb.append(conditionDesc).append(" ");
@@ -230,8 +229,8 @@ public class DiscardEffect extends RevealEffectBase {
List<Card> goodChoices = CardLists.filter(dPChHand, new Predicate<Card>() {
@Override
public boolean apply(final Card c) {
if (c.hasKeyword("If a spell or ability an opponent controls causes you to discard CARDNAME," +
" put it onto the battlefield instead of putting it into your graveyard.")
if (c.hasKeyword("If a spell or ability an opponent controls causes you to discard CARDNAME,"
+ " put it onto the battlefield instead of putting it into your graveyard.")
|| !c.getSVar("DiscardMe").equals("")) {
return false;
}

View File

@@ -26,7 +26,6 @@ public class DrawEffect extends SpellEffect {
final List<Player> tgtPlayers = getDefinedPlayersBeforeTargetOnes(sa);
if (!tgtPlayers.isEmpty()) {
sb.append(StringUtils.join(tgtPlayers, " and "));