Search in sources :

Example 1 with VolrathsLaboratoryToken

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

the class VolrathsLaboratoryEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    ObjectColor color = (ObjectColor) game.getState().getValue(source.getSourceId() + "_color");
    SubType subType = ChooseCreatureTypeEffect.getChosenCreatureType(source.getSourceId(), game);
    Token token = new VolrathsLaboratoryToken(color, subType);
    return token.putOntoBattlefield(1, game, source, source.getControllerId());
}
Also used : SubType(mage.constants.SubType) ObjectColor(mage.ObjectColor) VolrathsLaboratoryToken(mage.game.permanent.token.VolrathsLaboratoryToken) Token(mage.game.permanent.token.Token) VolrathsLaboratoryToken(mage.game.permanent.token.VolrathsLaboratoryToken)

Aggregations

ObjectColor (mage.ObjectColor)1 SubType (mage.constants.SubType)1 Token (mage.game.permanent.token.Token)1 VolrathsLaboratoryToken (mage.game.permanent.token.VolrathsLaboratoryToken)1