mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -600,6 +600,14 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
this.rememberedObjects.add(o);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* removeRemembered.
|
||||
* </p>
|
||||
*
|
||||
* @param o
|
||||
* a {@link java.lang.Object} object.
|
||||
*/
|
||||
public final void removeRemembered(final Object o) {
|
||||
this.rememberedObjects.remove(o);
|
||||
}
|
||||
@@ -5431,6 +5439,13 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
return this.typeContains("Equipment");
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* isScheme.
|
||||
* </p>
|
||||
*
|
||||
* @return a boolean.
|
||||
*/
|
||||
public final boolean isScheme() {
|
||||
return this.typeContains("Scheme");
|
||||
}
|
||||
|
||||
@@ -455,8 +455,8 @@ public final class GameActionUtil {
|
||||
int amount = amountString.matches("[0-9][0-9]?") ? Integer.parseInt(amountString)
|
||||
: CardFactoryUtil.xCount(source, source.getSVar(amountString));
|
||||
String plural = amount > 1 ? "s" : "";
|
||||
if (part.canPay(sourceAbility, source, p, cost) &&
|
||||
showYesNoDialog(source, "Do you want to remove " + amount + " " + counterType.getName()
|
||||
if (part.canPay(sourceAbility, source, p, cost)
|
||||
&& showYesNoDialog(source, "Do you want to remove " + amount + " " + counterType.getName()
|
||||
+ " counter" + plural + " from " + source + "?")) {
|
||||
source.subtractCounter(counterType, amount);
|
||||
} else {
|
||||
|
||||
@@ -155,8 +155,8 @@ public class AnimateEffect extends AnimateEffectBase {
|
||||
|
||||
if (clearAbilities || clearSpells || removeAll) {
|
||||
for (final SpellAbility ab : c.getSpellAbilities()) {
|
||||
if (removeAll || (ab.isAbility() && clearAbilities) ||
|
||||
(ab.isSpell() && clearSpells)) {
|
||||
if (removeAll || (ab.isAbility() && clearAbilities)
|
||||
|| (ab.isSpell() && clearSpells)) {
|
||||
c.removeSpellAbility(ab);
|
||||
removedAbilities.add(ab);
|
||||
}
|
||||
|
||||
@@ -24,13 +24,13 @@ public class SetInMotionEffect extends SpellEffect {
|
||||
|
||||
int repeats = 1;
|
||||
|
||||
if(sa.hasParam("RepeatNum"))
|
||||
{
|
||||
if (sa.hasParam("RepeatNum")) {
|
||||
|
||||
repeats = AbilityFactory.calculateAmount(sa.getSourceCard(), sa.getParam("RepeatNum"), sa);
|
||||
}
|
||||
|
||||
for(int i=0;i<repeats;i++)
|
||||
{
|
||||
for (int i = 0; i < repeats; i++) {
|
||||
|
||||
controller.setSchemeInMotion();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user