Search in sources :

Example 1 with CamaridToken

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

the class SarpadianEmpiresCreateSelectedTokenEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    String tokenType = game.getState().getValue(source.getSourceId().toString() + "_SarpadianEmpiresVolVii").toString();
    Token token;
    switch(tokenType) {
        case "White Citizen":
            token = new CitizenToken();
            break;
        case "Blue Camarid":
            token = new CamaridToken();
            break;
        case "Black Thrull":
            token = new ThrullToken();
            break;
        case "Red Goblin":
            token = new GoblinToken();
            break;
        default:
            token = new SaprolingToken();
            break;
    }
    token.putOntoBattlefield(1, game, source, source.getControllerId());
    return true;
}
Also used : SaprolingToken(mage.game.permanent.token.SaprolingToken) ThrullToken(mage.game.permanent.token.ThrullToken) CitizenToken(mage.game.permanent.token.CitizenToken) GoblinToken(mage.game.permanent.token.GoblinToken) CamaridToken(mage.game.permanent.token.CamaridToken) CitizenToken(mage.game.permanent.token.CitizenToken) ThrullToken(mage.game.permanent.token.ThrullToken) SaprolingToken(mage.game.permanent.token.SaprolingToken) Token(mage.game.permanent.token.Token) CamaridToken(mage.game.permanent.token.CamaridToken) GoblinToken(mage.game.permanent.token.GoblinToken)

Aggregations

CamaridToken (mage.game.permanent.token.CamaridToken)1 CitizenToken (mage.game.permanent.token.CitizenToken)1 GoblinToken (mage.game.permanent.token.GoblinToken)1 SaprolingToken (mage.game.permanent.token.SaprolingToken)1 ThrullToken (mage.game.permanent.token.ThrullToken)1 Token (mage.game.permanent.token.Token)1