- Fixed Gaea's Cradle etc. bug if zero mana is generated.

- Fixed text of Strafe and Sunlance.
This commit is contained in:
jendave
2011-08-06 09:18:27 +00:00
parent 479378c823
commit fb633e8219
3 changed files with 5 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
Name:Strafe
ManaCost:R
Types:Sorcery
Text:Strafe deals 3 damage to target nonRed creature.
Text:no text
A:SP$DealDamage|Cost$R|ValidTgts$Creature.nonRed|TgtPrompt$Select target nonred Creature|NumDmg$3|SpellDescription$Strafe deals 3 damage to target nonred creature.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/strafe.jpg

View File

@@ -1,7 +1,7 @@
Name:Sunlance
ManaCost:W
Types:Sorcery
Text:Sunlance deals 3 damage to target nonWhite creature.
Text:no text
A:SP$DealDamage|Cost$W|ValidTgts$Creature.nonWhite|TgtPrompt$Select target nonwhite Creature|NumDmg$3|SpellDescription$Sunlance deals 3 damage to target nonwhite creature.
SVar:Rarity:Common
SVar:Picture:http://resources.wizards.com/magic/cards/plc/en-us/card122355.jpg

View File

@@ -318,6 +318,9 @@ abstract public class Ability_Mana extends SpellAbility implements java.io.Seria
int count = CardFactoryUtil.xCount(sourceCard, countSB.toString());
StringBuilder sb = new StringBuilder();
if(count == 0) sb.append("0");
for(int i = 0; i < count; i++){
if (i != 0)
sb.append(" "); // added a space here to play nice with the new ManaPool