Fixed that surge craeted exceptions for rule tooltip text generation.

This commit is contained in:
LevelX2 2016-01-26 00:36:42 +01:00
parent 6100609ae2
commit 1e89fb60d1
4 changed files with 20 additions and 14 deletions

View file

@ -57,12 +57,13 @@ public class SurgeAbility extends SpellAbility {
this.spellAbilityType = SpellAbilityType.BASE_ALTERNATE;
this.timing = card.getSpellAbility().getTiming();
this.setRuleAtTheTop(true);
rule = "Surge " + surgeCosts
this.rule = "Surge " + surgeCosts
+ " <i>(You may cast this spell for its surge cost if you or a teammate has cast another spell this turn.)</i>";
}
public SurgeAbility(final SurgeAbility ability) {
super(ability);
this.rule = ability.rule;
}
@Override