mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[TLE] Implement Hog-Monkey Rampage
This commit is contained in:
parent
1f0b829522
commit
07a1875561
2 changed files with 68 additions and 0 deletions
67
Mage.Sets/src/mage/cards/h/HogMonkeyRampage.java
Normal file
67
Mage.Sets/src/mage/cards/h/HogMonkeyRampage.java
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.FightTargetsEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
import mage.target.common.TargetOpponentsCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HogMonkeyRampage extends CardImpl {
|
||||
|
||||
public HogMonkeyRampage(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R/G}");
|
||||
|
||||
// Choose target creature you control and target creature an opponent controls. Put a +1/+1 counter on the creature you control if it has power 4 or greater. Then those creatures fight each other.
|
||||
this.getSpellAbility().addEffect(new HogMonkeyRampageEffect());
|
||||
this.getSpellAbility().addEffect(new FightTargetsEffect().setText("Then those creatures fight each other"));
|
||||
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
|
||||
this.getSpellAbility().addTarget(new TargetOpponentsCreaturePermanent());
|
||||
}
|
||||
|
||||
private HogMonkeyRampage(final HogMonkeyRampage card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HogMonkeyRampage copy() {
|
||||
return new HogMonkeyRampage(this);
|
||||
}
|
||||
}
|
||||
|
||||
class HogMonkeyRampageEffect extends OneShotEffect {
|
||||
|
||||
HogMonkeyRampageEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "choose target creature you control and target creature an opponent controls. " +
|
||||
"Put a +1/+1 counter on the creature you control if it has power 4 or greater";
|
||||
}
|
||||
|
||||
private HogMonkeyRampageEffect(final HogMonkeyRampageEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HogMonkeyRampageEffect copy() {
|
||||
return new HogMonkeyRampageEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
return permanent != null
|
||||
&& permanent.getPower().getValue() >= 4
|
||||
&& permanent.addCounters(CounterType.P1P1.createInstance(), source, game);
|
||||
}
|
||||
}
|
||||
|
|
@ -148,6 +148,7 @@ public final class AvatarTheLastAirbenderEternal extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Hei Bai, Forest Guardian", 205, Rarity.MYTHIC, mage.cards.h.HeiBaiForestGuardian.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Heroic Intervention", 43, Rarity.MYTHIC, mage.cards.h.HeroicIntervention.class));
|
||||
cards.add(new SetCardInfo("Hippo-Cows", 252, Rarity.COMMON, mage.cards.h.HippoCows.class));
|
||||
cards.add(new SetCardInfo("Hog-Monkey Rampage", 255, Rarity.UNCOMMON, mage.cards.h.HogMonkeyRampage.class));
|
||||
cards.add(new SetCardInfo("Hook Swords", 147, Rarity.UNCOMMON, mage.cards.h.HookSwords.class));
|
||||
cards.add(new SetCardInfo("Humble Defector", 30, Rarity.MYTHIC, mage.cards.h.HumbleDefector.class));
|
||||
cards.add(new SetCardInfo("Imprisoned in the Moon", 14, Rarity.MYTHIC, mage.cards.i.ImprisonedInTheMoon.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue