mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- CheckStyle.
This commit is contained in:
@@ -440,7 +440,7 @@ public class ChangeZoneEffect extends SpellEffect {
|
|||||||
tgtC.clearUnEnchantCommand();
|
tgtC.clearUnEnchantCommand();
|
||||||
}
|
}
|
||||||
tgtC.enchantEntity(attachedTo);
|
tgtC.enchantEntity(attachedTo);
|
||||||
} else {// When it should enter the battlefield attached to an illegal permanent it fails
|
} else { // When it should enter the battlefield attached to an illegal permanent it fails
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public class DamageAllEffect extends SpellEffect {
|
|||||||
final int dmg = AbilityFactory.calculateAmount(sa.getSourceCard(), damage, sa);
|
final int dmg = AbilityFactory.calculateAmount(sa.getSourceCard(), damage, sa);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final ArrayList<Card> definedSources = AbilityFactory.getDefinedCards(sa.getSourceCard(), sa.getParam("DamageSource"), sa);
|
final ArrayList<Card> definedSources = AbilityFactory.getDefinedCards(sa.getSourceCard(), sa.getParam("DamageSource"), sa);
|
||||||
final Card source = definedSources.get(0);
|
final Card source = definedSources.get(0);
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import forge.card.abilityfactory.SpellEffect;
|
|||||||
import forge.card.spellability.SpellAbility;
|
import forge.card.spellability.SpellAbility;
|
||||||
import forge.game.player.Player;
|
import forge.game.player.Player;
|
||||||
|
|
||||||
public class DamagePreventEffect extends SpellEffect
|
public class DamagePreventEffect extends SpellEffect {
|
||||||
{
|
|
||||||
@Override
|
@Override
|
||||||
protected String getStackDescription(SpellAbility sa) {
|
protected String getStackDescription(SpellAbility sa) {
|
||||||
final StringBuilder sb = new StringBuilder();
|
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 int numToDig = AbilityFactory.calculateAmount(host, sa.getParam("DigNum"), sa);
|
||||||
final List<Player> tgtPlayers = getTargetPlayers(sa);
|
final List<Player> tgtPlayers = getTargetPlayers(sa);
|
||||||
|
|
||||||
|
|
||||||
sb.append(host.getController()).append(" looks at the top ").append(numToDig);
|
sb.append(host.getController()).append(" looks at the top ").append(numToDig);
|
||||||
sb.append(" card");
|
sb.append(" card");
|
||||||
if (numToDig != 1) {
|
if (numToDig != 1) {
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import forge.gui.GuiChoose;
|
|||||||
|
|
||||||
public class DigUntilEffect extends SpellEffect {
|
public class DigUntilEffect extends SpellEffect {
|
||||||
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see forge.card.abilityfactory.SpellEffect#getStackDescription(java.util.Map, forge.card.spellability.SpellAbility)
|
* @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 List<Player> tgtPlayers = getTargetPlayers(sa);
|
||||||
|
|
||||||
|
|
||||||
final String conditionDesc = sa.getParam("ConditionDescription");
|
final String conditionDesc = sa.getParam("ConditionDescription");
|
||||||
if (conditionDesc != null) {
|
if (conditionDesc != null) {
|
||||||
sb.append(conditionDesc).append(" ");
|
sb.append(conditionDesc).append(" ");
|
||||||
@@ -230,8 +229,8 @@ public class DiscardEffect extends RevealEffectBase {
|
|||||||
List<Card> goodChoices = CardLists.filter(dPChHand, new Predicate<Card>() {
|
List<Card> goodChoices = CardLists.filter(dPChHand, new Predicate<Card>() {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(final Card c) {
|
public boolean apply(final Card c) {
|
||||||
if (c.hasKeyword("If a spell or ability an opponent controls causes you to discard CARDNAME," +
|
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.")
|
+ " put it onto the battlefield instead of putting it into your graveyard.")
|
||||||
|| !c.getSVar("DiscardMe").equals("")) {
|
|| !c.getSVar("DiscardMe").equals("")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ public class DrawEffect extends SpellEffect {
|
|||||||
|
|
||||||
final List<Player> tgtPlayers = getDefinedPlayersBeforeTargetOnes(sa);
|
final List<Player> tgtPlayers = getDefinedPlayersBeforeTargetOnes(sa);
|
||||||
|
|
||||||
|
|
||||||
if (!tgtPlayers.isEmpty()) {
|
if (!tgtPlayers.isEmpty()) {
|
||||||
|
|
||||||
sb.append(StringUtils.join(tgtPlayers, " and "));
|
sb.append(StringUtils.join(tgtPlayers, " and "));
|
||||||
|
|||||||
Reference in New Issue
Block a user