forked from External/mage
Ability refactor: removed deprecated code
This commit is contained in:
parent
d63a3e88ce
commit
c656bea31c
14 changed files with 17 additions and 28 deletions
|
|
@ -115,11 +115,11 @@ public class CopyEffect extends ContinuousEffectImpl {
|
|||
permanent.removeAllAbilities(source.getSourceId(), game);
|
||||
if (copyFromObject instanceof Permanent) {
|
||||
for (Ability ability : ((Permanent) copyFromObject).getAbilities(game)) {
|
||||
permanent.addAbility(ability, getSourceId(), game, false); // no new Id so consumed replacement effects are known while new continuousEffects.apply happen.
|
||||
permanent.addAbility(ability, getSourceId(), game);
|
||||
}
|
||||
} else {
|
||||
for (Ability ability : copyFromObject.getAbilities()) {
|
||||
permanent.addAbility(ability, getSourceId(), game, false); // no new Id so consumed replacement effects are known while new continuousEffects.apply happen.
|
||||
permanent.addAbility(ability, getSourceId(), game);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue