Fixed a bug of copyEffect not removing the old abilities correctly.

This commit is contained in:
LevelX2 2013-02-20 01:24:44 +01:00
parent 9aabe14e01
commit 47c8ad8076

View file

@ -84,7 +84,7 @@ public class CopyEffect extends ContinuousEffectImpl<CopyEffect> {
for (String type: target.getSupertype()) {
permanent.getSupertype().add(type);
}
permanent.getAbilities().clear();
permanent.removeAllAbilities(source.getSourceId(), game);
for (Ability ability: target.getAbilities()) {
permanent.addAbility(ability, game);
}