[MH2] Implemented Search the Premises

This commit is contained in:
Evan Kranzler 2021-06-02 08:34:47 -04:00
parent f653ba91fc
commit 8a5b9a6018
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,33 @@
package mage.cards.s;
import mage.abilities.common.AttacksAllTriggeredAbility;
import mage.abilities.effects.keyword.InvestigateEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SearchThePremises extends CardImpl {
public SearchThePremises(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}");
// Whenever a creature attacks you or a planeswalker you control, investigate.
this.addAbility(new AttacksAllTriggeredAbility(
new InvestigateEffect(), false, true
));
}
private SearchThePremises(final SearchThePremises card) {
super(card);
}
@Override
public SearchThePremises copy() {
return new SearchThePremises(this);
}
}

View file

@ -180,6 +180,7 @@ public final class ModernHorizons2 extends ExpansionSet {
cards.add(new SetCardInfo("Sea Drake", 268, Rarity.UNCOMMON, mage.cards.s.SeaDrake.class));
cards.add(new SetCardInfo("Seal of Cleansing", 264, Rarity.UNCOMMON, mage.cards.s.SealOfCleansing.class));
cards.add(new SetCardInfo("Seal of Removal", 269, Rarity.UNCOMMON, mage.cards.s.SealOfRemoval.class));
cards.add(new SetCardInfo("Search the Premises", 29, Rarity.RARE, mage.cards.s.SearchThePremises.class));
cards.add(new SetCardInfo("Shardless Agent", 292, Rarity.RARE, mage.cards.s.ShardlessAgent.class));
cards.add(new SetCardInfo("Shattered Ego", 62, Rarity.COMMON, mage.cards.s.ShatteredEgo.class));
cards.add(new SetCardInfo("Silverbluff Bridge", 255, Rarity.COMMON, mage.cards.s.SilverbluffBridge.class));