mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 21:42:07 -08:00
[KHM] improved Cosima, God of the Voyage - "to the voyage" exile window, user friendly choose dialog, visible counters in exile, AI support (#7248);
This commit is contained in:
parent
4b9de96a6b
commit
c381ea7716
2 changed files with 34 additions and 7 deletions
|
|
@ -7,7 +7,9 @@ import mage.abilities.*;
|
|||
import mage.abilities.costs.mana.ManaCost;
|
||||
import mage.abilities.costs.mana.ManaCosts;
|
||||
import mage.constants.*;
|
||||
import mage.counters.Counters;
|
||||
import mage.game.Game;
|
||||
import mage.game.GameState;
|
||||
import mage.game.events.ZoneChangeEvent;
|
||||
import mage.util.CardUtil;
|
||||
import mage.util.SubTypes;
|
||||
|
|
@ -111,6 +113,16 @@ public abstract class ModalDoubleFacesCard extends CardImpl {
|
|||
rightHalfCard.updateZoneChangeCounter(game, event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Counters getCounters(Game game) {
|
||||
return leftHalfCard.getCounters(game.getState());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Counters getCounters(GameState state) {
|
||||
return state.getCardState(leftHalfCard.getId()).getCounters();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cast(Game game, Zone fromZone, SpellAbility ability, UUID controllerId) {
|
||||
switch (ability.getSpellAbilityType()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue