mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
cleanup some minor Java things
This commit is contained in:
@@ -6635,8 +6635,9 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
}
|
||||
}
|
||||
|
||||
} else if (property.startsWith("power") ||
|
||||
property.startsWith("toughness") || property.startsWith("cmc")) {
|
||||
} else if (property.startsWith("power")
|
||||
|| property.startsWith("toughness")
|
||||
|| property.startsWith("cmc")) {
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
String rhs = "";
|
||||
|
||||
@@ -675,12 +675,15 @@ public final class AbilityFactoryCopy {
|
||||
private static boolean copySpellTriggerAI(final AbilityFactory af, final SpellAbility sa, final boolean mandatory) {
|
||||
final boolean randomReturn = false;
|
||||
|
||||
//comment out the af.hasSubAbility() until it's used. randomReturn is always false.
|
||||
/*
|
||||
if (af.hasSubAbility()) {
|
||||
final AbilitySub abSub = sa.getSubAbility();
|
||||
if (abSub != null) {
|
||||
return randomReturn && abSub.chkAIDrawback();
|
||||
}
|
||||
}
|
||||
*/
|
||||
return randomReturn;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ import javax.swing.ImageIcon;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import net.slightlymagic.maxmtg.Predicate;
|
||||
import forge.AllZone;
|
||||
import forge.CardList;
|
||||
import forge.Constant;
|
||||
|
||||
Reference in New Issue
Block a user