Tabnine Logo
ProtectionChosenColorSourceEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
ProtectionChosenColorSourceEffect
in
mage.abilities.effects.keyword

Best Java code snippets using mage.abilities.effects.keyword.ProtectionChosenColorSourceEffect (Showing top 3 results out of 315)

origin: magefree/mage

@Override
public ProtectionChosenColorSourceEffect copy() {
  return new ProtectionChosenColorSourceEffect(this);
}
origin: magefree/mage

public VoiceOfAll(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}{W}");
  this.subtype.add(SubType.ANGEL);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // As Voice of All enters the battlefield, choose a color.
  this.addAbility(new AsEntersBattlefieldAbility(new ChooseColorEffect(Outcome.Benefit)));
  // Voice of All has protection from the chosen color.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProtectionChosenColorSourceEffect()));
}
origin: magefree/mage

public OrderOfTheStars(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{W}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.CLERIC);
  this.power = new MageInt(0);
  this.toughness = new MageInt(1);
  // Defender
  this.addAbility(DefenderAbility.getInstance());
  // As Order of the Stars enters the battlefield, choose a color.
  this.addAbility(new AsEntersBattlefieldAbility(new ChooseColorEffect(Outcome.Benefit)));
  // Order of the Stars has protection from the chosen color.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProtectionChosenColorSourceEffect()));
}
mage.abilities.effects.keywordProtectionChosenColorSourceEffect

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • findViewById (Activity)
  • setScale (BigDecimal)
  • Path (java.nio.file)
  • Permission (java.security)
    Legacy security code; do not use.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now