mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[ZNR] Implemented Paired Tactician
This commit is contained in:
parent
c16b1f1f73
commit
90b630d162
2 changed files with 83 additions and 0 deletions
82
Mage.Sets/src/mage/cards/p/PairedTactician.java
Normal file
82
Mage.Sets/src/mage/cards/p/PairedTactician.java
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class PairedTactician extends CardImpl {
|
||||
|
||||
public PairedTactician(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WARRIOR);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Whenever Paired Tactician and at least one other Warrior attack, put a +1/+1 counter on Paired Tactician.
|
||||
this.addAbility(new PairedTacticianTriggeredAbility());
|
||||
}
|
||||
|
||||
private PairedTactician(final PairedTactician card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PairedTactician copy() {
|
||||
return new PairedTactician(this);
|
||||
}
|
||||
}
|
||||
|
||||
class PairedTacticianTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
PairedTacticianTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()));
|
||||
}
|
||||
|
||||
private PairedTacticianTriggeredAbility(final PairedTacticianTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PairedTacticianTriggeredAbility copy() {
|
||||
return new PairedTacticianTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.DECLARED_ATTACKERS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return game.getCombat().getAttackers().contains(this.sourceId)
|
||||
&& game
|
||||
.getCombat()
|
||||
.getAttackers()
|
||||
.stream()
|
||||
.filter(uuid -> !this.getSourceId().equals(uuid))
|
||||
.map(game::getPermanent)
|
||||
.filter(Objects::nonNull)
|
||||
.anyMatch(permanent -> permanent.hasSubtype(SubType.WARRIOR, game));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever {this} and at least one other Warrior attack, put a +1/+1 counter on {this}.";
|
||||
}
|
||||
}
|
||||
|
|
@ -175,6 +175,7 @@ public final class ZendikarRising extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Nissa's Zendikon", 197, Rarity.COMMON, mage.cards.n.NissasZendikon.class));
|
||||
cards.add(new SetCardInfo("Omnath, Locus of Creation", 232, Rarity.MYTHIC, mage.cards.o.OmnathLocusOfCreation.class));
|
||||
cards.add(new SetCardInfo("Orah, Skyclave Hierophant", 233, Rarity.RARE, mage.cards.o.OrahSkyclaveHierophant.class));
|
||||
cards.add(new SetCardInfo("Paired Tactician", 31, Rarity.UNCOMMON, mage.cards.p.PairedTactician.class));
|
||||
cards.add(new SetCardInfo("Pelakka Caverns", 120, Rarity.UNCOMMON, mage.cards.p.PelakkaCaverns.class));
|
||||
cards.add(new SetCardInfo("Pelakka Predation", 120, Rarity.UNCOMMON, mage.cards.p.PelakkaPredation.class));
|
||||
cards.add(new SetCardInfo("Pillarverge Pathway", 263, Rarity.RARE, mage.cards.p.PillarvergePathway.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue