[LTC] Implement Oarth Of Eorl (#10469)

Added one constructor for SagaAbility, accepting multiple effects and a target.
This commit is contained in:
Susucre 2023-06-19 04:38:18 +02:00 committed by GitHub
parent 1194feefd8
commit 720b2fe163
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 112 additions and 0 deletions

View file

@ -63,6 +63,10 @@ public class SagaAbility extends SimpleStaticAbility {
addChapterEffect(card, chapter, chapter, new Effects(effects));
}
public void addChapterEffect(Card card, SagaChapter chapter, Effects effects, Target target) {
addChapterEffect(card, chapter, chapter, effects, target);
}
public void addChapterEffect(Card card, SagaChapter chapter, Consumer<TriggeredAbility> applier) {
addChapterEffect(card, chapter, chapter, applier);
}

View file

@ -0,0 +1,34 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author Susucr
*/
public final class HumanKnightToken extends TokenImpl {
public HumanKnightToken() {
super("Human Knight Token", "2/2 red Human Knight creature token with trample and haste");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add(SubType.HUMAN);
subtype.add(SubType.KNIGHT);
power = new MageInt(2);
toughness = new MageInt(2);
addAbility(TrampleAbility.getInstance());
addAbility(HasteAbility.getInstance());
}
public HumanKnightToken(final HumanKnightToken token) {
super(token);
}
@Override
public HumanKnightToken copy() {
return new HumanKnightToken(this);
}
}