* Adventure cards - improved game logs (card hint works with adventure spell now, added original card info to cast's log);

This commit is contained in:
Oleg Agafonov 2020-01-02 14:48:28 +04:00
parent 713110eb03
commit 862fe69b53
9 changed files with 141 additions and 62 deletions

View file

@ -99,6 +99,12 @@ public class AdventureCardSpellImpl extends CardImpl implements AdventureCardSpe
public AdventureCard getParentCard() {
return this.adventureCardParent;
}
@Override
public String getIdName() {
// id must send to main card (popup card hint in game logs)
return getName() + " [" + adventureCardParent.getId().toString().substring(0, 3) + ']';
}
}
class AdventureCardSpellAbility extends SpellAbility {