* Fixed a problem with stack abilities created by Designations eg. Monarch triggered ability (fixes #4457).

This commit is contained in:
LevelX2 2018-04-26 23:35:26 +02:00
parent c3934ae70b
commit 329116669a
6 changed files with 184 additions and 156 deletions

View file

@ -149,7 +149,7 @@ public class GameView implements Serializable {
} else if (object instanceof Designation) {
Designation designation = (Designation) game.getObject(object.getId());
if (designation != null) {
stack.put(stackObject.getId(), new CardView(designation, (StackAbility) stackObject));
stack.put(stackObject.getId(), new StackAbilityView(game, (StackAbility) stackObject, designation.getName(), new CardView(designation)));
} else {
LOGGER.fatal("Designation object not found: " + object.getName() + ' ' + object.toString() + ' ' + object.getClass().toString());
}