java code for Shifting Sliver

master
mileva@gmail.com 2012-09-23 01:30:43 +00:00
parent f7e7dd3cad
commit ccb073b47e
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package magic.card;
import magic.model.MagicPermanent;
import magic.model.MagicAbility;
import magic.model.mstatic.MagicLayer;
import magic.model.mstatic.MagicStatic;
import magic.model.target.MagicTargetFilter;
public class Shifting_Sliver {
public static final MagicStatic S = new MagicStatic(
MagicLayer.Ability,
MagicTargetFilter.TARGET_SLIVER) {
@Override
public long getAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final long flags) {
return flags | MagicAbility.CannotBeBlockedExceptBySliver.getMask();
}
};
}