little java cleanups

This commit is contained in:
slapshot5
2011-11-05 23:02:19 +00:00
parent 081faa0bb6
commit a7641c81ee
3 changed files with 8 additions and 10 deletions

View File

@@ -2461,14 +2461,13 @@ public class Card extends GameEntity implements Comparable<Card> {
sb.append(")\r\n");
}
}
//Convoke
for (String keyw : kw) {
if(keyw.equals("Convoke")) {
if (keyw.equals("Convoke")) {
if (sb.toString().endsWith("\r\n\r\n")) {
sb.delete(sb.lastIndexOf("\r\n"), sb.lastIndexOf("\r\n") + 3);
}
sb.append("Convoke (Each creature you tap while casting this spell reduces its cost by 1 or by one mana of that creature's color.)\r\n");
}
}

View File

@@ -416,11 +416,10 @@ public final class AbilityFactoryCopy {
copy.setManaCost("");
copy.setBaseAttack(2);
copy.setBaseDefense(2);
copy.setIntrinsicKeyword(new ArrayList<String>()); // remove
// all
// keywords
copy.setType(new ArrayList<String>()); // remove all
// types
//remove all keywords
copy.setIntrinsicKeyword(new ArrayList<String>());
//remove all types
copy.setType(new ArrayList<String>());
copy.addType("Creature");
copy.clearSpellAbility(); // disallow "morph_up"
copy.setCurSetCode("");

View File

@@ -48,8 +48,8 @@ public class CardFactoryPlaneswalkers {
card.addComesIntoPlayCommand(CardFactoryUtil.entersBattleFieldWithCounters(card, Counters.LOYALTY,
card.getBaseLoyalty()));
}
// *************** START *********** START **************************
//*************** START *********** START **************************
if (cardName.equals("Sarkhan the Mad")) {
// Planeswalker book-keeping