Search in sources :

Example 6 with GoblinToken

use of mage.game.permanent.token.GoblinToken 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

GoblinToken (mage.game.permanent.token.GoblinToken)6 CreateTokenEffect (mage.abilities.effects.common.CreateTokenEffect)3 Player (mage.players.Player)3 OneShotEffect (mage.abilities.effects.OneShotEffect)2 Permanent (mage.game.permanent.Permanent)2 Token (mage.game.permanent.token.Token)2 UUID (java.util.UUID)1 MageInt (mage.MageInt)1 Ability (mage.abilities.Ability)1 StaticAbility (mage.abilities.StaticAbility)1 BeginningOfCombatTriggeredAbility (mage.abilities.common.BeginningOfCombatTriggeredAbility)1 ContinuousEffect (mage.abilities.effects.ContinuousEffect)1 Effect (mage.abilities.effects.Effect)1 CreateTokenTargetEffect (mage.abilities.effects.common.CreateTokenTargetEffect)1 AttacksIfAbleSourceEffect (mage.abilities.effects.common.combat.AttacksIfAbleSourceEffect)1 GainAbilityTargetEffect (mage.abilities.effects.common.continuous.GainAbilityTargetEffect)1 AddCountersSourceEffect (mage.abilities.effects.common.counter.AddCountersSourceEffect)1 HasteAbility (mage.abilities.keyword.HasteAbility)1 MentorAbility (mage.abilities.keyword.MentorAbility)1 Card (mage.cards.Card)1