mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
More code cleanup
This commit is contained in:
@@ -78,7 +78,7 @@ import java.util.StringTokenizer;
|
||||
if (abSub != null) {
|
||||
sb.append(abSub.getStackDescription());
|
||||
}
|
||||
|
||||
|
||||
if (sa.hasParam("Announce")) {
|
||||
String svar = sa.getParam("Announce");
|
||||
int amount = CardFactoryUtil.xCount(sa.getHostCard(), sa.getSVar(svar));
|
||||
|
||||
@@ -1353,9 +1353,10 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
String announce = getParam("Announce");
|
||||
if (StringUtils.isBlank(announce)) return false;
|
||||
String[] announcedOnes = TextUtil.split(announce, ',');
|
||||
for(String a : announcedOnes) {
|
||||
if( a.trim().equalsIgnoreCase(variable))
|
||||
for (String a : announcedOnes) {
|
||||
if (a.trim().equalsIgnoreCase(variable)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -338,7 +338,8 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
||||
}
|
||||
if (sp.isCopied()) {
|
||||
si = this.push(sp);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
if (sp.isMultiKicker()) {
|
||||
final Cost costMultikicker = new Cost(sp.getMultiKickerManaCost(), false);
|
||||
boolean hasPaid = false;
|
||||
|
||||
@@ -712,7 +712,7 @@ public class HumanPlay {
|
||||
}
|
||||
|
||||
if (isActivatedSa) {
|
||||
ManaCostAdjustment.adjust(toPay, ability, false);
|
||||
ManaCostAdjustment.adjust(toPay, ability, false);
|
||||
}
|
||||
|
||||
InputPayMana inpPayment;
|
||||
|
||||
Reference in New Issue
Block a user