Search in sources :

Example 1 with EntersBattlefieldAbility

use of mage.abilities.common.EntersBattlefieldAbility in project mage by magefree.

the class MoritteOfTheFrostCopyApplier method apply.

@Override
public boolean apply(Game game, MageObject blueprint, Ability source, UUID copyToObjectId) {
    blueprint.addSuperType(SuperType.LEGENDARY);
    blueprint.addSuperType(SuperType.SNOW);
    if (!isCopyOfCopy(source, blueprint, copyToObjectId) && blueprint.isCreature(game)) {
        blueprint.getAbilities().add(new ChangelingAbility());
        blueprint.getAbilities().add(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(2), false)));
    }
    return true;
}
Also used : AddCountersSourceEffect(mage.abilities.effects.common.counter.AddCountersSourceEffect) EntersBattlefieldAbility(mage.abilities.common.EntersBattlefieldAbility) ChangelingAbility(mage.abilities.keyword.ChangelingAbility)

Aggregations

EntersBattlefieldAbility (mage.abilities.common.EntersBattlefieldAbility)1 AddCountersSourceEffect (mage.abilities.effects.common.counter.AddCountersSourceEffect)1 ChangelingAbility (mage.abilities.keyword.ChangelingAbility)1