* Corrosive Ooze - Fixed a bug game breaking bug if it is in the deck.

This commit is contained in:
LevelX2 2018-05-27 11:01:33 +02:00
parent ad5b719dd2
commit fc4e51e355

View file

@ -199,9 +199,10 @@ class CorrosiveOozeCombatWatcher extends Watcher {
}
}
}
if (game.getTurn().getPhaseType().equals(TurnPhase.COMBAT)) {
if (event.getType() == GameEvent.EventType.ZONE_CHANGE) {
if (((ZoneChangeEvent) event).getFromZone().equals(Zone.BATTLEFIELD)) {
if (event.getType() == GameEvent.EventType.ZONE_CHANGE) {
if (((ZoneChangeEvent) event).getFromZone().equals(Zone.BATTLEFIELD)) {
if (game.getTurn() != null && TurnPhase.COMBAT.equals(game.getTurn().getPhaseType())) {
// Check if a previous blocked or blocked by creatures is leaving the battlefield
for (Map.Entry<MageObjectReference, HashSet<MageObjectReference>> entry : oozeBlocksOrBlocked.entrySet()) {
for (MageObjectReference mor : entry.getValue()) {