mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- CheckStyle.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ public class DrawEffect extends SpellEffect {
|
||||
|
||||
final List<Player> tgtPlayers = getDefinedPlayersBeforeTargetOnes(sa);
|
||||
|
||||
|
||||
if (!tgtPlayers.isEmpty()) {
|
||||
|
||||
sb.append(StringUtils.join(tgtPlayers, " and "));
|
||||
|
||||
Reference in New Issue
Block a user