Search in sources :

Example 1 with DevilToken

use of mage.game.permanent.token.DevilToken in project mage by magefree.

the class BurnDownTheHouseEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    Token token = new DevilToken();
    token.putOntoBattlefield(3, game, source, source.getControllerId());
    game.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn).setTargetPointer(new FixedTargets(token, game)), source);
    return true;
}
Also used : FixedTargets(mage.target.targetpointer.FixedTargets) GainAbilityTargetEffect(mage.abilities.effects.common.continuous.GainAbilityTargetEffect) Token(mage.game.permanent.token.Token) DevilToken(mage.game.permanent.token.DevilToken) DevilToken(mage.game.permanent.token.DevilToken)

Aggregations

GainAbilityTargetEffect (mage.abilities.effects.common.continuous.GainAbilityTargetEffect)1 DevilToken (mage.game.permanent.token.DevilToken)1 Token (mage.game.permanent.token.Token)1 FixedTargets (mage.target.targetpointer.FixedTargets)1