forked from External/mage
Change EnchantAbility parameter from String to Target (#9588)
This commit is contained in:
parent
57efc02710
commit
c9a7aedfb2
1082 changed files with 1152 additions and 1152 deletions
|
|
@ -100,7 +100,7 @@ class AnimateDeadReplaceAbilityEffect extends ContinuousEffectImpl implements So
|
|||
FilterCreaturePermanent filter = new FilterCreaturePermanent("creature put onto the battlefield with {this}");
|
||||
filter.add(new AnimateDeadPredicate(source.getSourceId()));
|
||||
newTarget = new TargetCreaturePermanent(filter);
|
||||
newAbility = new EnchantAbility(newTarget.getTargetName());
|
||||
newAbility = new EnchantAbility(newTarget);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -124,12 +124,11 @@ class LicidContinuousEffect extends ContinuousEffectImpl {
|
|||
}
|
||||
licid.removeAbilities(toRemove, source.getSourceId(), game);
|
||||
|
||||
Ability ability = new EnchantAbility("creature");
|
||||
Target target = new TargetCreaturePermanent();
|
||||
Ability ability = new EnchantAbility(target);
|
||||
ability.setRuleAtTheTop(true);
|
||||
licid.addAbility(ability, source.getSourceId(), game);
|
||||
licid.getSpellAbility().getTargets().clear();
|
||||
Target target = new TargetCreaturePermanent();
|
||||
target.addTarget(this.getTargetPointer().getFirst(game, source), source, game);
|
||||
licid.getSpellAbility().getTargets().add(target);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue