mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Miracle - Fixed that miracle was also checked for inital card draw.
This commit is contained in:
parent
2767ff3846
commit
4adc55eb80
2 changed files with 3 additions and 2 deletions
|
@ -38,7 +38,6 @@ import mage.constants.Outcome;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.players.Player;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
import mage.watchers.common.MiracleWatcher;
|
||||
|
|
|
@ -69,8 +69,10 @@ public class MiracleWatcher extends Watcher {
|
|||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.UNTAP_STEP_PRE) {
|
||||
reset();
|
||||
return;
|
||||
}
|
||||
if (event.getType() == GameEvent.EventType.DREW_CARD) {
|
||||
// inital card draws do not trigger miracle so check that phase != null
|
||||
if (game.getPhase() != null && event.getType() == GameEvent.EventType.DREW_CARD) {
|
||||
UUID playerId = event.getPlayerId();
|
||||
if (playerId != null) {
|
||||
Integer amount = amountOfCardsDrawnThisTurn.get(playerId);
|
||||
|
|
Loading…
Reference in a new issue