mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
Add sub abilities in TokenImpl.addAbility and PermanentImpl.addAbility (fixes #8343)
This commit is contained in:
parent
ed4bc46164
commit
060ea7da83
3 changed files with 53 additions and 0 deletions
|
|
@ -386,6 +386,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
game.getState().addAbility(copyAbility, sourceId, this);
|
||||
}
|
||||
abilities.add(copyAbility);
|
||||
abilities.addAll(ability.getSubAbilities());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ public abstract class TokenImpl extends MageObjectImpl implements Token {
|
|||
public void addAbility(Ability ability) {
|
||||
ability.setSourceId(this.getId());
|
||||
abilities.add(ability);
|
||||
abilities.addAll(ability.getSubAbilities());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue