forked from External/mage
Fix copying subabilities to no longer duplicate them (#11399)
* Fix Subability copy bug (fix #10526 ) * Cards which copy abilities of other cards should not copy subabilities. * Enable previously-failing tests * Find more addAbility that should be done without subabilities * Add documentation to addAbility function * Add warning about not using basic addAbility when copying from a source * Invert withSubabilities to fromExistingObject
This commit is contained in:
parent
3972e80860
commit
ec4c79e0e0
39 changed files with 83 additions and 40 deletions
|
|
@ -89,7 +89,8 @@ public class PermanentToken extends PermanentImpl {
|
|||
// first time -> create ContinuousEffects only once
|
||||
// so sourceId must be null (keep triggered abilities forever?)
|
||||
for (Ability ability : token.getAbilities()) {
|
||||
this.addAbility(ability, null, game);
|
||||
//Don't add subabilities since the original token already has them in its abilities list
|
||||
this.addAbility(ability, null, game, true);
|
||||
}
|
||||
}
|
||||
this.abilities.setControllerId(this.controllerId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue