mirror of
https://github.com/correl/mage.git
synced 2025-01-15 19:13:24 +00:00
[VOW] Implemented Wolf Strike
This commit is contained in:
parent
f9388b89da
commit
f6a3431287
2 changed files with 72 additions and 0 deletions
71
Mage.Sets/src/mage/cards/w/WolfStrike.java
Normal file
71
Mage.Sets/src/mage/cards/w/WolfStrike.java
Normal file
|
@ -0,0 +1,71 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.DamageWithPowerFromOneToAnotherTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class WolfStrike extends CardImpl {
|
||||
|
||||
public WolfStrike(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}");
|
||||
|
||||
// Target creature you control gets +2/+0 until end of turn if it's night.
|
||||
// Then it deals damage equal to its power to target creature you don't control.
|
||||
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL));
|
||||
this.getSpellAbility().addEffect(new WolfStikeEffect());
|
||||
this.getSpellAbility().addEffect(new DamageWithPowerFromOneToAnotherTargetEffect("it").concatBy("Then"));
|
||||
}
|
||||
|
||||
private WolfStrike(final WolfStrike card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WolfStrike copy() {
|
||||
return new WolfStrike(this);
|
||||
}
|
||||
}
|
||||
|
||||
class WolfStikeEffect extends OneShotEffect {
|
||||
|
||||
public WolfStikeEffect() {
|
||||
super(Outcome.BoostCreature);
|
||||
staticText = "Target creature you control gets +2/+0 until end of turn if it's night";
|
||||
}
|
||||
|
||||
private WolfStikeEffect(final WolfStikeEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WolfStikeEffect copy() {
|
||||
return new WolfStikeEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
if (game.checkDayNight(false)) {
|
||||
BoostTargetEffect effect = new BoostTargetEffect(2, 2, Duration.EndOfTurn);
|
||||
game.addEffect(effect, source);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -292,6 +292,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Whispering Wizard", 88, Rarity.UNCOMMON, mage.cards.w.WhisperingWizard.class));
|
||||
cards.add(new SetCardInfo("Winged Portent", 89, Rarity.RARE, mage.cards.w.WingedPortent.class));
|
||||
cards.add(new SetCardInfo("Witch's Web", 227, Rarity.COMMON, mage.cards.w.WitchsWeb.class));
|
||||
cards.add(new SetCardInfo("Wolf Strike", 228, Rarity.COMMON, mage.cards.w.WolfStrike.class));
|
||||
cards.add(new SetCardInfo("Wolfkin Outcast", 229, Rarity.UNCOMMON, mage.cards.w.WolfkinOutcast.class));
|
||||
cards.add(new SetCardInfo("Wrathful Jailbreaker", 184, Rarity.COMMON, mage.cards.w.WrathfulJailbreaker.class));
|
||||
cards.add(new SetCardInfo("Wretched Throng", 91, Rarity.COMMON, mage.cards.w.WretchedThrong.class));
|
||||
|
|
Loading…
Reference in a new issue