mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
cleanup some minor Java things
This commit is contained in:
@@ -6292,7 +6292,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
return false;
|
||||
}
|
||||
|
||||
String[] incR = restriction.split("\\.",2); // Inclusive restrictions are
|
||||
String[] incR = restriction.split("\\.", 2); // Inclusive restrictions are
|
||||
// Card types
|
||||
|
||||
if (incR[0].equals("Spell") && !isSpell()) {
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -441,5 +441,5 @@ public class CardFactoryPlaneswalkers {
|
||||
|
||||
return card;
|
||||
}
|
||||
|
||||
|
||||
} //end class CardFactoryPlaneswalkers
|
||||
|
||||
@@ -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