mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
implement [MKM] Innocent Bystander
This commit is contained in:
parent
b8c78cceec
commit
0a493d1844
2 changed files with 70 additions and 0 deletions
69
Mage.Sets/src/mage/cards/i/InnocentBystander.java
Normal file
69
Mage.Sets/src/mage/cards/i/InnocentBystander.java
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.keyword.InvestigateEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author xenohedron
|
||||
*/
|
||||
public final class InnocentBystander extends CardImpl {
|
||||
|
||||
public InnocentBystander(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
||||
this.subtype.add(SubType.GOBLIN);
|
||||
this.subtype.add(SubType.CITIZEN);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Whenever Innocent Bystander is dealt 3 or more damage, investigate.
|
||||
this.addAbility(new InnocentBystanderTriggeredAbility());
|
||||
|
||||
}
|
||||
|
||||
private InnocentBystander(final InnocentBystander card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InnocentBystander copy() {
|
||||
return new InnocentBystander(this);
|
||||
}
|
||||
}
|
||||
|
||||
class InnocentBystanderTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
InnocentBystanderTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new InvestigateEffect(), false);
|
||||
setTriggerPhrase("Whenever {this} is dealt 3 or more damage, ");
|
||||
}
|
||||
|
||||
private InnocentBystanderTriggeredAbility(final InnocentBystanderTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InnocentBystanderTriggeredAbility copy() {
|
||||
return new InnocentBystanderTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.DAMAGED_PERMANENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return event.getTargetId().equals(getSourceId()) && event.getAmount() >= 3;
|
||||
}
|
||||
}
|
||||
|
|
@ -122,6 +122,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Hunted Bonebrute", 87, Rarity.RARE, mage.cards.h.HuntedBonebrute.class));
|
||||
cards.add(new SetCardInfo("Hustle // Bustle", 249, Rarity.UNCOMMON, mage.cards.h.HustleBustle.class));
|
||||
cards.add(new SetCardInfo("Ill-Timed Explosion", 207, Rarity.RARE, mage.cards.i.IllTimedExplosion.class));
|
||||
cards.add(new SetCardInfo("Innocent Bystander", 133, Rarity.COMMON, mage.cards.i.InnocentBystander.class));
|
||||
cards.add(new SetCardInfo("Inside Source", 19, Rarity.COMMON, mage.cards.i.InsideSource.class));
|
||||
cards.add(new SetCardInfo("Insidious Roots", 208, Rarity.UNCOMMON, mage.cards.i.InsidiousRoots.class));
|
||||
cards.add(new SetCardInfo("Island", 273, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue