Tabnine Logo
EnchantedCreatureBlockedTriggeredAbility.getEffects
Code IndexAdd Tabnine to your IDE (free)

How to use
getEffects
method
in
mage.abilities.common.EnchantedCreatureBlockedTriggeredAbility

Best Java code snippets using mage.abilities.common.EnchantedCreatureBlockedTriggeredAbility.getEffects (Showing top 1 results out of 315)

origin: magefree/mage

@Override
public boolean checkTrigger(GameEvent event, Game game) {
  Permanent equipment = game.getPermanent(sourceId);
  if (equipment != null && equipment.getAttachedTo() != null) {
    Permanent equipped = game.getPermanent(equipment.getAttachedTo());
    if (equipped.getId().equals(event.getTargetId())) {
      getEffects().get(1).setTargetPointer(new FixedTarget(equipped, game));
      return true;
    }
  }
  return false;
}
mage.abilities.commonEnchantedCreatureBlockedTriggeredAbilitygetEffects

Popular methods of EnchantedCreatureBlockedTriggeredAbility

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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