public IslebackSpawn(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{U}{U}"); this.subtype.add(SubType.KRAKEN); this.power = new MageInt(4); this.toughness = new MageInt(8); // Shroud this.addAbility(ShroudAbility.getInstance()); // Isleback Spawn gets +4/+8 as long as a library has twenty or fewer cards in it. this.addAbility(new SimpleStaticAbility(Zone.ALL, new ConditionalContinuousEffect( new BoostSourceEffect(4,8, Duration.EndOfGame), new CardsInAnyLibraryCondition(ComparisonType.FEWER_THAN, 21), "{this} gets +4/+8 as long as a library has twenty or fewer cards in it"))); }
public ShelldockIsle(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.LAND},""); // Hideaway this.addAbility(new HideawayAbility()); // {tap}: Add {U}. this.addAbility(new BlueManaAbility()); // {U}, {tap}: You may play the exiled card without paying its mana cost if a library has twenty or fewer cards in it. Ability ability = new ActivateIfConditionActivatedAbility( Zone.BATTLEFIELD, new HideawayPlayEffect(), new ManaCostsImpl("{U}"), new CardsInAnyLibraryCondition(ComparisonType.FEWER_THAN, 21)); ability.addCost(new TapSourceCost()); this.addAbility(ability); }