mirror of
https://github.com/correl/mage.git
synced 2025-03-26 17:00:08 -09:00
[BRO] Implement Rescue Retriever (#9752)
* [BRO] Implement Rescue Retriever * [BRO] Update Rescue Retriever based on review Tests fail because of merge. Manual tests on Rescue Retriever pass.
This commit is contained in:
parent
9e57437ae1
commit
30a498145e
2 changed files with 62 additions and 0 deletions
Mage.Sets/src/mage
61
Mage.Sets/src/mage/cards/r/RescueRetriever.java
Normal file
61
Mage.Sets/src/mage/cards/r/RescueRetriever.java
Normal file
|
@ -0,0 +1,61 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.PreventAllDamageToAllEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersAllEffect;
|
||||
import mage.constants.*;
|
||||
import mage.abilities.keyword.FlashAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.common.FilterAttackingCreature;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lunelis
|
||||
*/
|
||||
public final class RescueRetriever extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent(SubType.SOLDIER, "other Soldier you control");
|
||||
private static final FilterAttackingCreature filterAttacking = new FilterAttackingCreature("attacking Soldiers you control");
|
||||
|
||||
static {
|
||||
filter.add(AnotherPredicate.instance);
|
||||
filterAttacking.add(SubType.SOLDIER.getPredicate());
|
||||
filterAttacking.add(TargetController.YOU.getControllerPredicate());
|
||||
filterAttacking.add(AnotherPredicate.instance);
|
||||
}
|
||||
|
||||
public RescueRetriever(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}{W}");
|
||||
|
||||
this.subtype.add(SubType.DOG);
|
||||
this.subtype.add(SubType.SOLDIER);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Flash
|
||||
this.addAbility(FlashAbility.getInstance());
|
||||
|
||||
// When Rescue Retriever enters the battlefield, put a +1/+1 counter on each other Soldier you control.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter), false));
|
||||
|
||||
// Prevent all damage that would be dealt to other attacking Soldiers you control.
|
||||
this.addAbility(new SimpleStaticAbility(new PreventAllDamageToAllEffect(Duration.WhileOnBattlefield, filterAttacking)));
|
||||
}
|
||||
|
||||
private RescueRetriever(final RescueRetriever card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RescueRetriever copy() {
|
||||
return new RescueRetriever(this);
|
||||
}
|
||||
}
|
|
@ -215,6 +215,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Reconstructed Thopter", 242, Rarity.UNCOMMON, mage.cards.r.ReconstructedThopter.class));
|
||||
cards.add(new SetCardInfo("Recruitment Officer", 23, Rarity.UNCOMMON, mage.cards.r.RecruitmentOfficer.class));
|
||||
cards.add(new SetCardInfo("Repair and Recharge", 24, Rarity.UNCOMMON, mage.cards.r.RepairAndRecharge.class));
|
||||
cards.add(new SetCardInfo("Rescue Retriever", 288, Rarity.RARE, mage.cards.r.RescueRetriever.class));
|
||||
cards.add(new SetCardInfo("Retrieval Agent", 60, Rarity.COMMON, mage.cards.r.RetrievalAgent.class));
|
||||
cards.add(new SetCardInfo("Roc Hunter", 150, Rarity.COMMON, mage.cards.r.RocHunter.class));
|
||||
cards.add(new SetCardInfo("Rootwire Amalgam", 203, Rarity.MYTHIC, mage.cards.r.RootwireAmalgam.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue