public MyojinOfLifesWeb(UUID ownerId) { super( ownerId, 229, "Myojin of Life's Web", Rarity.RARE, new CardType[] {CardType.CREATURE}, "{6}{G}{G}{G}"); this.expansionSetCode = "CHK"; this.supertype.add("Legendary"); this.subtype.add("Spirit"); this.color.setGreen(true); this.power = new MageInt(8); this.toughness = new MageInt(8); this.addWatcher(new CastFromHandWatcher()); // Myojin of Life's Web enters the battlefield with a divinity counter on it if you cast it from // your hand. this.addAbility( new EntersBattlefieldAbility( new ConditionalOneShotEffect( new AddCountersSourceEffect(CounterType.DIVINITY.createInstance()), new CastFromHandCondition(), ""), "{this} enters the battlefield with a divinity counter on it if you cast it from your hand")); // Myojin of Life's Web is indestructible as long as it has a divinity counter on it. this.addAbility( new SimpleStaticAbility( Zone.BATTLEFIELD, new ConditionalContinousEffect( new GainAbilitySourceEffect( IndestructibleAbility.getInstance(), Duration.WhileOnBattlefield), new HasCounterCondition(CounterType.DIVINITY), "{this} is indestructible as long as it has a divinity counter on it"))); // Remove a divinity counter from Myojin of Life's Web: Put any number of creature cards from // your hand onto the battlefield. Ability ability = new SimpleActivatedAbility( Zone.BATTLEFIELD, new PutOntoBattlefieldTargetEffect(false), new RemoveCountersSourceCost(CounterType.DIVINITY.createInstance())); ability.addTarget(new TargetCardInHand(0, Integer.MAX_VALUE, filter)); this.addAbility(ability); }
public MyojinOfNightsReach(UUID ownerId) { super( ownerId, 126, "Myojin of Nights Reach", Rarity.RARE, new CardType[] {CardType.CREATURE}, "{5}{B}{B}{B}"); this.expansionSetCode = "CHK"; this.supertype.add("Legendary"); this.subtype.add("Spirit"); this.color.setBlack(true); this.power = new MageInt(5); this.toughness = new MageInt(2); this.addWatcher(new CastFromHandWatcher()); // Myojin of Night's Reach enters the battlefield with a divinity counter on it if you cast it // from your hand. this.addAbility( new EntersBattlefieldAbility( new ConditionalOneShotEffect( new AddCountersSourceEffect(CounterType.DIVINITY.createInstance()), new CastFromHandCondition(), ""), "{this} enters the battlefield with a divinity counter on it if you cast it from your hand")); // Myojin of Night's Reach is indestructible as long as it has a divinity counter on it. this.addAbility( new SimpleStaticAbility( Constants.Zone.BATTLEFIELD, new ConditionalContinousEffect( new GainAbilitySourceEffect( new IndestructibleAbility(), Constants.Duration.WhileOnBattlefield), new HasCounterCondition(CounterType.DIVINITY), "{this} is indestructible as long as it has a divinity counter on it"))); // Remove a divinity counter from Myojin of Night's Reach: Each opponent discards his or her // hand. Ability ability = new SimpleActivatedAbility( Constants.Zone.BATTLEFIELD, new MyojinOfNightsReachEffect(), new RemoveCountersSourceCost(CounterType.DIVINITY.createInstance())); this.addAbility(ability); }