Card: fixed CARDNAME & EFFECTSOURCE on the static abilties

This commit is contained in:
Hanmac
2018-02-16 20:55:17 +01:00
parent 8f1c7bf40a
commit 8490f8d90b

View File

@@ -1925,7 +1925,12 @@ public class Card extends GameEntity implements Comparable<Card> {
}
final Card host = stAb.getHostCard();
if (isValid(stAb.getParam("ValidAttacker").split(","), host.getController(), host, null)) {
sb.append(stAb.toString());
String desc = stAb.toString();
desc = TextUtil.fastReplace(desc, "CARDNAME", host.getName());
if (host.getEffectSource() != null) {
desc = TextUtil.fastReplace(desc, "EFFECTSOURCE", host.getEffectSource().getName());
}
sb.append(desc);
sb.append("\r\n");
}
}