mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
spjspj - Add in Tokens to the Card Viewer (first version)
This commit is contained in:
parent
5afdc78f5b
commit
241691b153
5 changed files with 142 additions and 13 deletions
|
|
@ -256,7 +256,9 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
Ability copyAbility = ability.copy();
|
||||
copyAbility.setControllerId(controllerId);
|
||||
copyAbility.setSourceId(objectId);
|
||||
game.getState().addAbility(copyAbility, this);
|
||||
if (game != null) {
|
||||
game.getState().addAbility(copyAbility, this);
|
||||
}
|
||||
abilities.add(copyAbility);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue