@Override public ExploreSourceEffect copy() { return new ExploreSourceEffect(this); }
public ExploreSourceEffect(boolean showAbilityHint, String whosExplores) { super(Outcome.Benefit); if(whosExplores != null) { this.sourceName = whosExplores; } setText(); }
@Override public boolean apply(Game game, Ability source) { return explorePermanent(game, source.getSourceId(), source); }
public JadelightRanger(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{G}"); this.subtype.add(SubType.MERFOLK); this.subtype.add(SubType.SCOUT); this.power = new MageInt(2); this.toughness = new MageInt(1); // When Jadelight Ranger enters the battlefield, it explores, then it explores again. Ability ability = new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect().setText("it explores"), false); ability.addEffect(new ExploreSourceEffect().setText(", then it explores again. (Reveal the top card of your library. Put that card into your hand if it's a land. Otherwise, put a +1/+1 counter on this creature, then put the card back or put it into your graveyard. Then repeat this process.) ")); this.addAbility(ability); }
public static String getRuleText(boolean showAbilityHint) { return getRuleText(showAbilityHint, null); } public static String getRuleText(boolean showAbilityHint, String whosExplores) {
private void setText(){ this.staticText = getRuleText(this.showAbilityHint, this.sourceName); }
public MerfolkBranchwalker(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}"); this.subtype.add(SubType.MERFOLK); this.subtype.add(SubType.SCOUT); this.power = new MageInt(2); this.toughness = new MageInt(1); // When Merfolk Branchwalker enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public ExploreSourceEffect(final ExploreSourceEffect effect) { super(effect); this.showAbilityHint = effect.showAbilityHint; this.sourceName = effect.sourceName; setText(); }
public ExploreTargetEffect(boolean showAbilityHint) { super(Outcome.Benefit); this.staticText = ExploreSourceEffect.getRuleText(showAbilityHint); }
@Override public boolean apply(Game game, Ability source) { return ExploreSourceEffect.explorePermanent(game, getTargetPointer().getFirst(game, source), source); }
public IxallisDiviner(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}"); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.DRUID); this.power = new MageInt(0); this.toughness = new MageInt(3); // When Ixalli's Diviner enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public EmperorsVanguard(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}"); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.SCOUT); this.power = new MageInt(4); this.toughness = new MageInt(3); // Whenever Emperor's Vanguard deals combat damage to a player, it explores. this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new ExploreSourceEffect(), false)); }
public SeekersSquire(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}"); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.SCOUT); this.power = new MageInt(1); this.toughness = new MageInt(2); // When Seekers' Squire enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public TishanasWayfinder(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}"); this.subtype.add(SubType.MERFOLK); this.subtype.add(SubType.SCOUT); this.power = new MageInt(2); this.toughness = new MageInt(2); // When Tishana's Wayfinder enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public EmissaryOfSunrise(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}"); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.CLERIC); this.power = new MageInt(2); this.toughness = new MageInt(1); // First strike this.addAbility(FirstStrikeAbility.getInstance()); // When Emissary of Sunrise enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public BrazenBuccaneers(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}"); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.PIRATE); this.power = new MageInt(2); this.toughness = new MageInt(2); // Haste this.addAbility(HasteAbility.getInstance()); // When Brazen Buccaneers enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public QueensAgent(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{B}"); this.subtype.add(SubType.VAMPIRE); this.subtype.add(SubType.SCOUT); this.power = new MageInt(3); this.toughness = new MageInt(3); // Lifelink this.addAbility(LifelinkAbility.getInstance()); // When Queen's Agent enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public SirenLookout(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); this.subtype.add(SubType.SIREN); this.subtype.add(SubType.PIRATE); this.power = new MageInt(1); this.toughness = new MageInt(2); // Flying this.addAbility(FlyingAbility.getInstance()); // When Siren Lookout enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public DireFleetInterloper(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.PIRATE); this.power = new MageInt(2); this.toughness = new MageInt(2); // Menace this.addAbility(new MenaceAbility()); // When Dire Fleet Interloper enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }
public SunriseSeeker(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{W}"); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.SCOUT); this.power = new MageInt(3); this.toughness = new MageInt(3); // Vigilance this.addAbility(VigilanceAbility.getInstance()); // When Sunrise Seeker enters the battlefield, it explores. this.addAbility(new EntersBattlefieldTriggeredAbility(new ExploreSourceEffect())); }