Tabnine Logo
LoseHalfLifeTargetEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.common.LoseHalfLifeTargetEffect
constructor

Best Java code snippets using mage.abilities.effects.common.LoseHalfLifeTargetEffect.<init> (Showing top 6 results out of 315)

origin: magefree/mage

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

public HavocFestival(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{B}{R}");
  // Players can't gain life.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantGainLifeAllEffect()));
  // At the beginning of each player's upkeep, that player loses half their life, rounded up.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new LoseHalfLifeTargetEffect(), TargetController.ANY, false));
}
origin: magefree/mage

public VirtusTheVeiled(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.AZRA);
  this.subtype.add(SubType.ASSASSIN);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Partner with Gorm the Great (When this creature enters the battlefield, target player may put Gorm into their hand from their library, then shuffle.)
  this.addAbility(new PartnerWithAbility("Gorm the Great", true));
  // Deathtouch
  this.addAbility(DeathtouchAbility.getInstance());
  // Whenever Virtus the Veiled deals combat damage to a player, that player loses half their life, rounded up.
  this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new LoseHalfLifeTargetEffect(), false, true));
}
origin: magefree/mage

public QuietusSpike(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
  this.subtype.add(SubType.EQUIPMENT);
  // Equipped creature has deathtouch.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(DeathtouchAbility.getInstance(), AttachmentType.EQUIPMENT)));
  // Whenever equipped creature deals combat damage to a player, that player loses half their life, rounded up.
  this.addAbility(new DealsDamageToAPlayerAttachedTriggeredAbility(new LoseHalfLifeTargetEffect(), "equipped", false, true));
  // Equip {3}
  this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(3)));
}
origin: magefree/mage

public Scytheclaw(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{5}");
  this.subtype.add(SubType.EQUIPMENT);
  // Living weapon
  this.addAbility(new LivingWeaponAbility());
  // Equipped creature gets +1/+1.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(1, 1)));
  // Whenever equipped creature deals combat damage to a player, that player loses half of their life, round up.
  this.addAbility(new DealsDamageToAPlayerAttachedTriggeredAbility(new LoseHalfLifeTargetEffect(), "equipped", false, true));
  // Equip {3}
  this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(3)));
}
origin: magefree/mage

public EbonbladeReaper(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.CLERIC);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  //Whenever Ebonblade Reaper attacks, you lose half your life, rounded up.
  this.addAbility(new AttacksTriggeredAbility(new LoseHalfLifeEffect(), false));
  //Whenever Ebonblade Reaper deals combat damage to a player, that player loses half their life, rounded up.
  this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new LoseHalfLifeTargetEffect(), false, true));
  //Morph {3}{B}{B}
  this.addAbility(new MorphAbility(this, new ManaCostsImpl<>("{3}{B}{B}")));
}
mage.abilities.effects.commonLoseHalfLifeTargetEffect<init>

Popular methods of LoseHalfLifeTargetEffect

    Popular in Java

    • Finding current android device location
    • putExtra (Intent)
    • getExternalFilesDir (Context)
    • getApplicationContext (Context)
    • FlowLayout (java.awt)
      A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
    • Timestamp (java.sql)
      A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
    • Stack (java.util)
      Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
    • StringTokenizer (java.util)
      Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
    • BoxLayout (javax.swing)
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • 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