mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
[LCI] Implement Poetic Ingenuity
This commit is contained in:
parent
139e06665a
commit
bcd8687285
7 changed files with 113 additions and 4 deletions
|
|
@ -20,6 +20,9 @@ import java.util.stream.Collectors;
|
|||
*/
|
||||
public class AttacksWithCreaturesTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
// retrieve the number of attackers in triggered effects with getValue
|
||||
public static final String VALUEKEY_NUMBER_ATTACKERS = "number_attackers";
|
||||
|
||||
private final FilterPermanent filter;
|
||||
private final int minAttackers;
|
||||
private final boolean setTargetPointer;
|
||||
|
|
@ -86,7 +89,7 @@ public class AttacksWithCreaturesTriggeredAbility extends TriggeredAbilityImpl {
|
|||
if (attackers.size() < minAttackers) {
|
||||
return false;
|
||||
}
|
||||
getEffects().setValue("attackers", attackers.size());
|
||||
getEffects().setValue(VALUEKEY_NUMBER_ATTACKERS, attackers.size());
|
||||
if (setTargetPointer) {
|
||||
getEffects().setTargetPointer(new FixedTargets(attackers, game));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class Dinosaur31Token extends TokenImpl {
|
||||
|
||||
public Dinosaur31Token() {
|
||||
super("Dinosaur Token", "3/1 red Dinosaur creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add(SubType.DINOSAUR);
|
||||
power = new MageInt(3);
|
||||
toughness = new MageInt(1);
|
||||
}
|
||||
|
||||
protected Dinosaur31Token(final Dinosaur31Token token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public Dinosaur31Token copy() {
|
||||
return new Dinosaur31Token(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue