mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
* 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:
parent
fe3c2cc386
commit
2b21298377
4 changed files with 21 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue