mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
implement [MH3] Tamiyo Inquisitive Student // Tamiyo, Seasoned Scholar
This commit is contained in:
parent
833ecff409
commit
8002cdf88f
9 changed files with 397 additions and 62 deletions
|
|
@ -0,0 +1,35 @@
|
|||
package mage.abilities.dynamicvalue.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public enum CardsInControllerLibraryCount implements DynamicValue {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
Player controller = game.getPlayer(sourceAbility.getControllerId());
|
||||
return controller != null ? controller.getLibrary().size() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CardsInControllerLibraryCount copy() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "the number of cards in your library";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "1";
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.MaximumHandSizeControllerEffect;
|
||||
import mage.abilities.effects.common.continuous.MaximumHandSizeControllerEffect.HandSizeModification;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.command.Emblem;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class TamiyoSeasonedScholarEmblem extends Emblem {
|
||||
|
||||
/**
|
||||
* Emblem with "You have no maximum hand size"
|
||||
*/
|
||||
|
||||
public TamiyoSeasonedScholarEmblem() {
|
||||
super("Emblem Tamiyo");
|
||||
this.getAbilities().add(new SimpleStaticAbility(Zone.COMMAND, new MaximumHandSizeControllerEffect(
|
||||
Integer.MAX_VALUE, Duration.Custom, HandSizeModification.SET
|
||||
)));
|
||||
}
|
||||
|
||||
private TamiyoSeasonedScholarEmblem(final TamiyoSeasonedScholarEmblem card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TamiyoSeasonedScholarEmblem copy() {
|
||||
return new TamiyoSeasonedScholarEmblem(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -131,6 +131,7 @@
|
|||
|Generate|EMBLEM:RVR|Emblem Domri|||DomriRadeEmblem|
|
||||
|Generate|EMBLEM:SCD|Emblem Nixilis|||ObNixilisReignitedEmblem|
|
||||
|Generate|EMBLEM:SCD|Emblem Sarkhan|||SarkhanTheDragonspeakerEmblem|
|
||||
|Generate|EMBLEM:MH3|Emblem Tamiyo|||TamiyoSeasonedScholarEmblem|
|
||||
|
||||
# ALL PLANES
|
||||
# Usage hints:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue