mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fixed Karplusan Hound damaging everything
This commit is contained in:
parent
9919a3403d
commit
8c8b6c99cc
1 changed files with 9 additions and 4 deletions
|
@ -33,13 +33,14 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.decorator.ConditionalTriggeredAbility;
|
||||
import mage.abilities.effects.common.DamageEverythingEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterPlaneswalkerPermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -56,9 +57,13 @@ public class KarplusanHound extends CardImpl {
|
|||
FilterPlaneswalkerPermanent filter = new FilterPlaneswalkerPermanent("a Chandra planeswalker");
|
||||
filter.add(new SubtypePredicate(SubType.CHANDRA));
|
||||
// Whenever Karplusan Hound attacks, if you control a Chandra planeswalker, this creature deals 2 damage to any target.
|
||||
Ability ability = new ConditionalTriggeredAbility(new AttacksTriggeredAbility(new DamageEverythingEffect(2), false), new PermanentsOnTheBattlefieldCondition(filter),
|
||||
"if you control a Chandra planeswalker, this creature deals 2 damage to any target");
|
||||
|
||||
Ability ability = new ConditionalTriggeredAbility(
|
||||
new AttacksTriggeredAbility(new DamageTargetEffect(2), false),
|
||||
new PermanentsOnTheBattlefieldCondition(filter),
|
||||
"if you control a Chandra planeswalker, "
|
||||
+ "this creature deals 2 damage to any target"
|
||||
);
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue