From d55fbafc66e48ee2bfd417f30a92574c35424c21 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 17 Jan 2013 23:01:24 +0100 Subject: [PATCH] Fixed issue #80 that multiple PermanentTokens copied from one Token used the same abilities. --- Mage/src/mage/abilities/effects/common/CreateTokenEffect.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/abilities/effects/common/CreateTokenEffect.java b/Mage/src/mage/abilities/effects/common/CreateTokenEffect.java index 4f381993980..6ce5c35f574 100644 --- a/Mage/src/mage/abilities/effects/common/CreateTokenEffect.java +++ b/Mage/src/mage/abilities/effects/common/CreateTokenEffect.java @@ -74,7 +74,9 @@ public class CreateTokenEffect extends OneShotEffect { @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; }