enPump & enPumpCurse Auras missing spell description
I think that I finally may have found the reason why Auras with enPump or enPumpCurse do not have the spell description that is built in the keyword passed on ... it looks like the method public Spell_Permanent(Card sourceCard, Cost cost, Target tgt) {} is overwriting the text.
I think that line 152 in Spell_Permanent.Spell_Permanent(Card sourceCard, Cost cost, Target tgt) is the source of the problem.
I am not sure how to fix this. Slapshot fixed a similar bug that was adding a getSpellText to the end of the text returned by a call to getText.
Slapshot, can you work the same type of magic on this one?
I think that line 152 in Spell_Permanent.Spell_Permanent(Card sourceCard, Cost cost, Target tgt) is the source of the problem.
I am not sure how to fix this. Slapshot fixed a similar bug that was adding a getSpellText to the end of the text returned by a call to getText.
Slapshot, can you work the same type of magic on this one?
- Code: Select all
public Spell_Permanent(Card sourceCard, Cost cost, Target tgt) {
super(sourceCard, cost, tgt);
if(CardFactory.hasKeyword(sourceCard,"Champion") != -1) {
int n = CardFactory.hasKeyword(sourceCard, "Champion");
String parse = sourceCard.getKeyword().get(n).toString();
willChampion = true;
championType = parse.split(":")[1];
}
if(sourceCard.isCreature()) {
StringBuilder sb = new StringBuilder();
sb.append(sourceCard.getName()).append(" - Creature ").append(sourceCard.getNetAttack());
sb.append(" / ").append(sourceCard.getNetDefense());
setStackDescription(sb.toString());
}
else setStackDescription(sourceCard.getName());
setDescription(getStackDescription());
if(willChampion) {
sourceCard.addComesIntoPlayCommand(championCommandComes);
sourceCard.addLeavesPlayCommand(championCommandLeavesPlay);
}
}//Spell_Permanent()