* Added Morph ability.

This commit is contained in:
LevelX2 2014-06-09 17:53:55 +02:00
parent b1de70a3bf
commit d244551e3b
45 changed files with 929 additions and 191 deletions

View file

@ -821,14 +821,14 @@ public abstract class AbilityImpl implements Ability {
if (object instanceof StackAbility) {
Card card = game.getCard(((StackAbility) object).getSourceId());
if (card != null) {
sb.append(card.getName());
sb.append(card.getLogName());
} else {
sb.append(object.getName());
}
} else {
if (object instanceof Spell) {
Spell spell = (Spell) object;
String castText = spell.getSpellAbility().toString();
String castText = spell.getSpellCastText(game);
sb.append((castText.startsWith("Cast ") ? castText.substring(5):castText));
if (spell.getFromZone() == Zone.GRAVEYARD) {
sb.append(" from graveyard");