-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
… method
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,36 +2,45 @@ | |
|
||
package mage.game.turn; | ||
|
||
import java.util.UUID; | ||
|
||
import mage.constants.TurnPhase; | ||
import mage.game.Game; | ||
import mage.game.events.GameEvent.EventType; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author BetaSteward_at_googlemail.com | ||
*/ | ||
public class BeginningPhase extends Phase { | ||
|
||
private final boolean isExtra; | ||
|
||
public BeginningPhase() { | ||
this(false); | ||
} | ||
|
||
public BeginningPhase(boolean isExtra) { | ||
this.type = TurnPhase.BEGINNING; | ||
this.event = EventType.BEGINNING_PHASE; | ||
this.preEvent = EventType.BEGINNING_PHASE_PRE; | ||
this.postEvent = EventType.BEGINNING_PHASE_POST; | ||
this.steps.add(new UntapStep()); | ||
this.steps.add(new UpkeepStep()); | ||
this.steps.add(new DrawStep()); | ||
this.isExtra = isExtra; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Susucre
Author
Contributor
|
||
} | ||
|
||
@Override | ||
public boolean beginPhase(Game game, UUID activePlayerId) { | ||
game.getBattlefield().beginningOfTurn(game); | ||
if (!isExtra) { | ||
game.getBattlefield().beginningOfTurn(game); | ||
This comment has been minimized.
Sorry, something went wrong.
JayDi85
Member
|
||
} | ||
return super.beginPhase(game, activePlayerId); | ||
} | ||
|
||
|
||
protected BeginningPhase(final BeginningPhase phase) { | ||
super(phase); | ||
this.isExtra = phase.isExtra; | ||
} | ||
|
||
@Override | ||
|
Must skip draw and untap steps due rules: