mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed issue #80 that multiple PermanentTokens copied from one Token used the same abilities.
This commit is contained in:
parent
0bcf645158
commit
d55fbafc66
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ public class CreateTokenEffect extends OneShotEffect<CreateTokenEffect> {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
int value = amount.calculate(game, source);
|
||||
token.putOntoBattlefield(value, game, source.getSourceId(), source.getControllerId());
|
||||
Token tokenCopy = token.copy();
|
||||
tokenCopy.getAbilities().newId(); // neccessary if token has ability like DevourAbility()
|
||||
tokenCopy.putOntoBattlefield(value, game, source.getSourceId(), source.getControllerId());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue