- Added Hazduhr the Abbot.

This commit is contained in:
Agetian
2017-08-04 10:22:41 +00:00
parent 081ea769a1
commit 364205cd9b
4 changed files with 26 additions and 1 deletions

View File

@@ -111,6 +111,7 @@ public class EffectEffect extends SpellAbilityEffect {
}
final Card eff = createEffect(hostCard, controller, name, image);
eff.setEffectSource(hostCard);
// Grant SVars first in order to give references to granted abilities
if (effectSVars != null) {

View File

@@ -1863,7 +1863,12 @@ public class Card extends GameEntity implements Comparable<Card> {
sb.replace(start, start + 4, "\r\n");
}
return sb.toString().replaceAll("CARDNAME", state.getName()).trim();
String desc = sb.toString().replaceAll("CARDNAME", state.getName());
if (getEffectSource() != null) {
desc = desc.replace("EFFECTSOURCE", getEffectSource().getName());
}
return desc;
}
private StringBuilder abilityTextInstantSorcery(CardState state) {