forked from External/mage
50 lines
1.4 KiB
Java
50 lines
1.4 KiB
Java
|
|
package mage.cards.r;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.common.SimpleStaticAbility;
|
|
import mage.abilities.effects.common.continuous.GainAbilityAllEffect;
|
|
import mage.abilities.keyword.HasteAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SubType;
|
|
import mage.constants.Zone;
|
|
import mage.filter.common.FilterCreaturePermanent;
|
|
|
|
/**
|
|
*
|
|
* @author KholdFuzion
|
|
*/
|
|
public final class ReflexSliver extends CardImpl {
|
|
|
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
|
|
|
static {
|
|
filter.add(SubType.SLIVER.getPredicate());
|
|
}
|
|
|
|
public ReflexSliver(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
|
|
this.subtype.add(SubType.SLIVER);
|
|
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// All Sliver creatures have haste.
|
|
this.addAbility(new SimpleStaticAbility(new GainAbilityAllEffect(
|
|
HasteAbility.getInstance(), Duration.WhileOnBattlefield,
|
|
filter, "All Sliver creatures have haste.")));
|
|
}
|
|
|
|
private ReflexSliver(final ReflexSliver card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public ReflexSliver copy() {
|
|
return new ReflexSliver(this);
|
|
}
|
|
}
|