mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed error.
This commit is contained in:
parent
0ad4ca713a
commit
2e96f72104
1 changed files with 4 additions and 1 deletions
|
@ -78,10 +78,13 @@ public class AncientHellkite extends CardImpl<AncientHellkite> {
|
||||||
|
|
||||||
class AncientHellkiteAbility extends ActivatedAbilityImpl<AncientHellkiteAbility> {
|
class AncientHellkiteAbility extends ActivatedAbilityImpl<AncientHellkiteAbility> {
|
||||||
|
|
||||||
|
private static final FilterCreaturePermanent filterTemplate = new FilterCreaturePermanent("creature defending player controls");
|
||||||
|
|
||||||
public AncientHellkiteAbility() {
|
public AncientHellkiteAbility() {
|
||||||
super(Zone.BATTLEFIELD, new DamageTargetEffect(1));
|
super(Zone.BATTLEFIELD, new DamageTargetEffect(1));
|
||||||
addCost(new AncientHellkiteCost());
|
addCost(new AncientHellkiteCost());
|
||||||
addManaCost(new ColoredManaCost(ColoredManaSymbol.R));
|
addManaCost(new ColoredManaCost(ColoredManaSymbol.R));
|
||||||
|
addTarget(new TargetCreaturePermanent(filterTemplate));
|
||||||
}
|
}
|
||||||
|
|
||||||
public AncientHellkiteAbility(final AncientHellkiteAbility ability) {
|
public AncientHellkiteAbility(final AncientHellkiteAbility ability) {
|
||||||
|
@ -97,7 +100,7 @@ class AncientHellkiteAbility extends ActivatedAbilityImpl<AncientHellkiteAbility
|
||||||
public boolean activate(Game game, boolean noMana) {
|
public boolean activate(Game game, boolean noMana) {
|
||||||
UUID defenderId = game.getCombat().getDefendingPlayer(sourceId);
|
UUID defenderId = game.getCombat().getDefendingPlayer(sourceId);
|
||||||
if (defenderId != null) {
|
if (defenderId != null) {
|
||||||
FilterCreaturePermanent filter = new FilterCreaturePermanent("creature defending player controls");
|
FilterCreaturePermanent filter = filterTemplate.copy();
|
||||||
filter.add(new ControllerIdPredicate(defenderId));
|
filter.add(new ControllerIdPredicate(defenderId));
|
||||||
|
|
||||||
this.getTargets().clear();
|
this.getTargets().clear();
|
||||||
|
|
Loading…
Reference in a new issue