Examples of LoseLifeSourceControllerEffect


Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever a player casts a spell, you lose 1 life.
        this.addAbility(new SpellCastAllTriggeredAbility(new LoseLifeSourceControllerEffect(1), false));
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

        this.color.setBlack(true);

        // Search your library for a card, then shuffle your library and put that card on top of it. You lose 2 life.
        this.getSpellAbility().addEffect(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary(), false, true));
        this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(2));
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

        // Scry 2, then draw two cards. You lose 2 life.
        this.getSpellAbility().addEffect(new ScryEffect(2));
        Effect effect = new DrawCardSourceControllerEffect(2);
        effect.setText("then draw two cards");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(2));
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

        this.power = new MageInt(7);
        this.toughness = new MageInt(7);

        // At the beginning of each upkeep, you draw a card and you lose 1 life.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new DrawCardSourceControllerEffect(1), TargetController.ANY, false);
        Effect effect = new LoseLifeSourceControllerEffect(1);
        effect.setText("and you lose 1 life");
        ability.addEffect(effect);
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

        this.power = new MageInt(4);
        this.toughness = new MageInt(4);

        this.addAbility(FlyingAbility.getInstance());
        // At the beginning of your upkeep, you lose 1 life.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new LoseLifeSourceControllerEffect(1), TargetController.YOU, false));
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

        this.toughness = new MageInt(2);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever Tethered Skirge becomes the target of a spell or ability, you lose 1 life.
        this.addAbility(new BecomesTargetTriggeredAbility(new LoseLifeSourceControllerEffect(1)));
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

        this.color.setBlack(true);

        // You draw three cards and you lose 3 life.
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(3));
        this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(3));
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

    @Override
    public boolean checkTrigger(GameEvent event, Game game) {
        if (event.getType() == GameEvent.EventType.DAMAGED_CREATURE) {
            if (event.getTargetId().equals(this.sourceId)) {
                this.getEffects().clear();
                this.addEffect(new LoseLifeSourceControllerEffect(event.getAmount()));
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

    public PhyrexianArena(UUID ownerId) {
        super(ownerId, 47, "Phyrexian Arena", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}{B}");
        this.expansionSetCode = "APC";
        this.color.setBlack(true);
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new DrawCardSourceControllerEffect(1), TargetController.YOU, false);
        ability.addEffect(new LoseLifeSourceControllerEffect(1));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect

        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Whenever Filthy Cur is dealt damage, you lose that much life.
        this.addAbility(new DealtDamageLoseLifeTriggeredAbility(Zone.BATTLEFIELD, new LoseLifeSourceControllerEffect(0), false));

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.