Hurray! Fixed Issue 61. This also fixes card copies not working (e.g. Basilisk Collar copied several times with Prototype Portal).

This commit is contained in:
magenoxx 2011-08-01 20:01:44 +04:00
parent 180a472bc6
commit 5e8aa0036e
9 changed files with 31 additions and 1 deletions

View file

@ -71,6 +71,7 @@ public class CopyTokenFunction implements Function<Token, Card> {
for (Ability ability0 : source.getAbilities()) {
Ability ability = ability0.copy();
ability.newId();
ability.setSourceId(target.getId());
target.addAbility(ability);
}