* UI: fixed that tokens in M15 render mode did not use a variety of images (all same named tokens uses same image);

This commit is contained in:
Oleg Agafonov 2020-06-15 20:21:30 +04:00
parent fe3c2cc386
commit 2b21298377
4 changed files with 21 additions and 10 deletions

View file

@ -370,7 +370,10 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
copyAbility.setSourceId(objectId);
// triggered abilities must be added to the state().triggers
// still as long as the prev. permanent is known to the LKI (e.g. Showstopper) so gained dies triggered ability will trigger
game.getState().addAbility(copyAbility, sourceId, this);
if (game != null) {
// game is null in cards viewer window (MageBook)
game.getState().addAbility(copyAbility, sourceId, this);
}
abilities.add(copyAbility);
}
}
@ -400,7 +403,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
}
@Override
public void removeAbilities(List<Ability> abilitiesToRemove, UUID sourceId, Game game){
public void removeAbilities(List<Ability> abilitiesToRemove, UUID sourceId, Game game) {
if (abilitiesToRemove == null) {
return;
}