mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed a bug of copyEffect not removing the old abilities correctly.
This commit is contained in:
parent
9aabe14e01
commit
47c8ad8076
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue