Fixed issue #80 that multiple PermanentTokens copied from one Token used the same abilities.

This commit is contained in:
LevelX2 2013-01-17 23:01:24 +01:00
parent 0bcf645158
commit d55fbafc66

View file

@ -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;
}