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;
}
Aggregations