mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
little java cleanups
This commit is contained in:
@@ -2464,11 +2464,10 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
|
|
||||||
//Convoke
|
//Convoke
|
||||||
for (String keyw : kw) {
|
for (String keyw : kw) {
|
||||||
if(keyw.equals("Convoke")) {
|
if (keyw.equals("Convoke")) {
|
||||||
if (sb.toString().endsWith("\r\n\r\n")) {
|
if (sb.toString().endsWith("\r\n\r\n")) {
|
||||||
sb.delete(sb.lastIndexOf("\r\n"), sb.lastIndexOf("\r\n") + 3);
|
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");
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -416,11 +416,10 @@ public final class AbilityFactoryCopy {
|
|||||||
copy.setManaCost("");
|
copy.setManaCost("");
|
||||||
copy.setBaseAttack(2);
|
copy.setBaseAttack(2);
|
||||||
copy.setBaseDefense(2);
|
copy.setBaseDefense(2);
|
||||||
copy.setIntrinsicKeyword(new ArrayList<String>()); // remove
|
//remove all keywords
|
||||||
// all
|
copy.setIntrinsicKeyword(new ArrayList<String>());
|
||||||
// keywords
|
//remove all types
|
||||||
copy.setType(new ArrayList<String>()); // remove all
|
copy.setType(new ArrayList<String>());
|
||||||
// types
|
|
||||||
copy.addType("Creature");
|
copy.addType("Creature");
|
||||||
copy.clearSpellAbility(); // disallow "morph_up"
|
copy.clearSpellAbility(); // disallow "morph_up"
|
||||||
copy.setCurSetCode("");
|
copy.setCurSetCode("");
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public class CardFactoryPlaneswalkers {
|
|||||||
card.getBaseLoyalty()));
|
card.getBaseLoyalty()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// *************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
if (cardName.equals("Sarkhan the Mad")) {
|
if (cardName.equals("Sarkhan the Mad")) {
|
||||||
|
|
||||||
// Planeswalker book-keeping
|
// Planeswalker book-keeping
|
||||||
|
|||||||
Reference in New Issue
Block a user