Tabnine Logo
ChangelingAbility.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
mage.abilities.keyword.ChangelingAbility

Best Java code snippets using mage.abilities.keyword.ChangelingAbility.getId (Showing top 2 results out of 315)

origin: magefree/mage

@Override
public void watch(GameEvent event, Game game) {
  if (event.getType() == EventType.DAMAGED_PLAYER) {
    DamagedPlayerEvent dEvent = (DamagedPlayerEvent) event;
    if (dEvent.isCombatDamage()) {
      Permanent creature = game.getPermanent(dEvent.getSourceId());
      if (creature != null && !allSubtypes.contains(creature.getControllerId())) {
        if (creature.getAbilities().containsKey(ChangelingAbility.getInstance().getId()) || creature.isAllCreatureTypes()) {
          allSubtypes.add(creature.getControllerId());
        } else {
          Set<SubType> subtypes = damagingSubtypes.getOrDefault(creature.getControllerId(), new LinkedHashSet<>());
          subtypes.addAll(creature.getSubtype(game));
          damagingSubtypes.put(creature.getControllerId(), subtypes);
        }
      }
    }
  }
}
origin: magefree/mage

boolean changeling = false;
boolean changeling2 = false;
if (creature.getAbilities().containsKey(ChangelingAbility.getInstance().getId()) || creature.isAllCreatureTypes()) {
  changeling = true;
if (creature2.getAbilities().containsKey(ChangelingAbility.getInstance().getId()) || creature2.isAllCreatureTypes()) {
  changeling2 = true;
mage.abilities.keywordChangelingAbilitygetId

Popular methods of ChangelingAbility

  • getInstance

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JButton (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for Android Studio
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