mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed Call of the Death-Dweller not giving deathtouch counters
This commit is contained in:
parent
cfe55a04f3
commit
9579ec1e37
1 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,7 @@ import mage.abilities.Ability;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.cards.*;
|
import mage.cards.*;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.ComparisonType;
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
|
@ -12,6 +13,7 @@ import mage.filter.FilterCard;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterCreatureCard;
|
import mage.filter.common.FilterCreatureCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
|
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||||
import mage.filter.predicate.permanent.PermanentIdPredicate;
|
import mage.filter.predicate.permanent.PermanentIdPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
@ -100,8 +102,8 @@ class CallOfTheDeathDwellerEffect extends OneShotEffect {
|
||||||
permanent.addCounters(CounterType.MENACE.createInstance(), source, game);
|
permanent.addCounters(CounterType.MENACE.createInstance(), source, game);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
target.clearChosen();
|
|
||||||
filter.setMessage("creature to put a deathtouch counter on");
|
filter.setMessage("creature to put a deathtouch counter on");
|
||||||
|
target = new TargetPermanent(0, 1, filter, true);
|
||||||
if (player.choose(outcome, target, source.getSourceId(), game)) {
|
if (player.choose(outcome, target, source.getSourceId(), game)) {
|
||||||
Permanent permanent = game.getPermanent(target.getFirstTarget());
|
Permanent permanent = game.getPermanent(target.getFirstTarget());
|
||||||
if (permanent != null) {
|
if (permanent != null) {
|
||||||
|
@ -117,6 +119,10 @@ class CallOfTheDeathDwellerTarget extends TargetCardInYourGraveyard {
|
||||||
private static final FilterCard filter
|
private static final FilterCard filter
|
||||||
= new FilterCreatureCard("creature cards with total converted mana cost 3 or less from your graveyard");
|
= new FilterCreatureCard("creature cards with total converted mana cost 3 or less from your graveyard");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, 4));
|
||||||
|
}
|
||||||
|
|
||||||
CallOfTheDeathDwellerTarget() {
|
CallOfTheDeathDwellerTarget() {
|
||||||
super(0, 2, filter, false);
|
super(0, 2, filter, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue