forked from External/mage
[BLB] Implement Rabbit Response
This commit is contained in:
parent
43387e521c
commit
49f32e208b
2 changed files with 49 additions and 0 deletions
48
Mage.Sets/src/mage/cards/r/RabbitResponse.java
Normal file
48
Mage.Sets/src/mage/cards/r/RabbitResponse.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.keyword.ScryEffect;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RabbitResponse extends CardImpl {
|
||||
|
||||
private static final Condition condition
|
||||
= new PermanentsOnTheBattlefieldCondition(new FilterControlledPermanent(SubType.RABBIT));
|
||||
private static final Hint hint = new ConditionHint(condition, "You control a Rabbit");
|
||||
|
||||
public RabbitResponse(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}{W}");
|
||||
|
||||
// Creatures you control get +2/+1 until end of turn. If you control a Rabbit, scry 2.
|
||||
this.getSpellAbility().addEffect(new BoostControlledEffect(2, 1, Duration.EndOfTurn));
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new ScryEffect(2), condition,
|
||||
"if you control a Rabbit, scry 2"
|
||||
));
|
||||
this.getSpellAbility().addHint(hint);
|
||||
}
|
||||
|
||||
private RabbitResponse(final RabbitResponse card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RabbitResponse copy() {
|
||||
return new RabbitResponse(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -123,6 +123,7 @@ public final class Bloomburrow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Plumecreed Mentor", 228, Rarity.UNCOMMON, mage.cards.p.PlumecreedMentor.class));
|
||||
cards.add(new SetCardInfo("Pond Prophet", 229, Rarity.COMMON, mage.cards.p.PondProphet.class));
|
||||
cards.add(new SetCardInfo("Quaketusk Boar", 146, Rarity.UNCOMMON, mage.cards.q.QuaketuskBoar.class));
|
||||
cards.add(new SetCardInfo("Rabbit Response", 26, Rarity.COMMON, mage.cards.r.RabbitResponse.class));
|
||||
cards.add(new SetCardInfo("Rabid Bite", 394, Rarity.COMMON, mage.cards.r.RabidBite.class));
|
||||
cards.add(new SetCardInfo("Repel Calamity", 27, Rarity.UNCOMMON, mage.cards.r.RepelCalamity.class));
|
||||
cards.add(new SetCardInfo("Rockface Village", 259, Rarity.UNCOMMON, mage.cards.r.RockfaceVillage.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue