Search in sources :

Example 1 with DamageSelfEffect

use of mage.abilities.effects.common.DamageSelfEffect in project mage by magefree.

the class SunflareShamanEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    Player controller = game.getPlayer(source.getControllerId());
    if (controller != null) {
        int ElementalsInYourGraveyard = controller.getGraveyard().count(filter, game);
        new DamageTargetEffect(ElementalsInYourGraveyard).apply(game, source);
        new DamageSelfEffect(ElementalsInYourGraveyard).apply(game, source);
        return true;
    }
    return false;
}
Also used : Player(mage.players.Player) DamageTargetEffect(mage.abilities.effects.common.DamageTargetEffect) DamageSelfEffect(mage.abilities.effects.common.DamageSelfEffect)

Aggregations

DamageSelfEffect (mage.abilities.effects.common.DamageSelfEffect)1 DamageTargetEffect (mage.abilities.effects.common.DamageTargetEffect)1 Player (mage.players.Player)1