@Override public boolean canBlock(Permanent attacker, Permanent blocker, Ability source, Game game) { return attacker.hasAbility(FlyingAbility.getInstance().getId(), game); }
private FlyingAbility() { this.addEffect(new FlyingEffect()); }
abilities.add(FlyingAbility.getInstance().getRule()); abilities.add(TrampleAbility.getInstance().getRule()); abilities.add(HasteAbility.getInstance().getRule()); if (FlyingAbility.getInstance().getRule().equals(chosen)) { ability = FlyingAbility.getInstance(); } else if (TrampleAbility.getInstance().getRule().equals(chosen)) { ability = TrampleAbility.getInstance();
HalcyonGlazeToken() { super("", "4/4 Illusion creature with flying"); cardType.add(CardType.CREATURE); subtype.add(SubType.ILLUSION); power = new MageInt(4); toughness = new MageInt(4); this.addAbility(FlyingAbility.getInstance()); } public HalcyonGlazeToken(final HalcyonGlazeToken token) {
public DrakeToken() { super("Drake", "2/2 blue Drake creature token with flying"); this.cardType.add(CardType.CREATURE); this.subtype.add(SubType.DRAKE); this.color = ObjectColor.BLUE; this.power = new MageInt(2); this.toughness = new MageInt(2); this.addAbility(FlyingAbility.getInstance()); }
KolaghanMonumentToken() { super("", "4/4 black and red Dragon artifact creature with flying"); cardType.add(CardType.ARTIFACT); cardType.add(CardType.CREATURE); color.setBlack(true); color.setRed(true); this.subtype.add(SubType.DRAGON); power = new MageInt(4); toughness = new MageInt(4); this.addAbility(FlyingAbility.getInstance()); } public KolaghanMonumentToken(final KolaghanMonumentToken token) {
@Override public boolean canBlock(Permanent attacker, Permanent blocker, Ability source, Game game) { return attacker.hasAbility(FlyingAbility.getInstance().getId(), game); }
FaerieConclaveToken() { super("Faerie", "2/1 blue Faerie creature with flying"); cardType.add(CardType.CREATURE); this.subtype.add(SubType.FAERIE); color.setBlue(true); power = new MageInt(2); toughness = new MageInt(1); this.addAbility(FlyingAbility.getInstance()); } public FaerieConclaveToken(final FaerieConclaveToken token) {
@Override public boolean applies(Permanent permanent, Ability source, Game game) { return permanent.getAbilities().containsKey(FlyingAbility.getInstance().getId()); }
public ConcordiaPegasus(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{W}"); this.subtype.add(SubType.PEGASUS); this.power = new MageInt(1); this.toughness = new MageInt(3); // Flying this.addAbility(FlyingAbility.getInstance()); }
@Override public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) { Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source)); if (permanent != null) { switch (layer) { case AbilityAddingRemovingEffects_6: if (sublayer == SubLayer.NA) { permanent.getAbilities().removeIf(entry -> entry.getId().equals(FlyingAbility.getInstance().getId())); } break; } return true; } return false; }
public FightingDrake(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}{U}"); this.subtype.add(SubType.DRAKE); this.power = new MageInt(2); this.toughness = new MageInt(4); this.addAbility(FlyingAbility.getInstance()); }
@Override public boolean checkTrigger(GameEvent event, Game game) { return event.getSourceId().equals(this.getSourceId()) && game.getPermanent(event.getTargetId()).getAbilities().containsKey(FlyingAbility.getInstance().getId()); }
public ChapelGeist(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{W}{W}"); this.subtype.add(SubType.SPIRIT); this.power = new MageInt(2); this.toughness = new MageInt(3); this.addAbility(FlyingAbility.getInstance()); }
@Override public boolean checkTrigger(GameEvent event, Game game) { return event.getSourceId().equals(this.getSourceId()) && game.getPermanent(event.getTargetId()).getAbilities().containsKey(FlyingAbility.getInstance().getId()); }
public DawnGryff(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W}"); this.subtype.add(SubType.HIPPOGRIFF); this.power = new MageInt(2); this.toughness = new MageInt(2); // Flying this.addAbility(FlyingAbility.getInstance()); }
@Override public boolean checkTrigger(GameEvent event, Game game) { return event.getSourceId().equals(this.getSourceId()) && game.getPermanent(event.getTargetId()).getAbilities().containsKey(FlyingAbility.getInstance().getId()); }
public MahamotiDjinn(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{U}{U}"); this.subtype.add(SubType.DJINN); this.power = new MageInt(5); this.toughness = new MageInt(6); this.addAbility(FlyingAbility.getInstance()); }
@Override public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) { if (blocker.getAbilities().containsKey(FlyingAbility.getInstance().getId()) || blocker.getAbilities().containsKey(ReachAbility.getInstance().getId())) { return true; } return false; }
public MakindiGriffin (UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{W}"); this.subtype.add(SubType.GRIFFIN); this.power = new MageInt(2); this.toughness = new MageInt(4); this.addAbility(FlyingAbility.getInstance()); }