forked from External/mage
Planechase: refactor planes;
This commit is contained in:
parent
b6557201b4
commit
823d677068
25 changed files with 229 additions and 241 deletions
|
|
@ -1,8 +1,5 @@
|
|||
|
||||
package mage.game.command.planes;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.ActivateIfConditionActivatedAbility;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
|
|
@ -17,6 +14,7 @@ import mage.abilities.effects.OneShotEffect;
|
|||
import mage.abilities.effects.common.RollPlanarDieEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardHandControllerEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Planes;
|
||||
import mage.constants.TargetController;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
|
|
@ -26,14 +24,16 @@ import mage.target.Target;
|
|||
import mage.util.CardUtil;
|
||||
import mage.watchers.common.PlanarRollWatcher;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public class AcademyAtTolariaWestPlane extends Plane {
|
||||
|
||||
public AcademyAtTolariaWestPlane() {
|
||||
this.setName("Plane - Academy at Tolaria West");
|
||||
this.setPlaneType(Planes.PLANE_ACADEMY_AT_TOLARIA_WEST);
|
||||
this.setExpansionSetCodeForImage("PCA");
|
||||
|
||||
// At the beginning of your end step, if you have 0 cards in hand, draw seven cards
|
||||
|
|
@ -88,7 +88,7 @@ class DrawCardsActivePlayerEffect extends OneShotEffect {
|
|||
if (cPlane == null) {
|
||||
return false;
|
||||
}
|
||||
if (!cPlane.getName().equalsIgnoreCase("Plane - Academy at Tolaria West")) {
|
||||
if (!cPlane.getPlaneType().equals(Planes.PLANE_ACADEMY_AT_TOLARIA_WEST)) {
|
||||
return false;
|
||||
}
|
||||
Player player = game.getPlayer(game.getActivePlayerId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue