mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Corrosive Ooze - Fixed a bug game breaking bug if it is in the deck.
This commit is contained in:
parent
ad5b719dd2
commit
fc4e51e355
1 changed files with 4 additions and 3 deletions
|
|
@ -199,9 +199,10 @@ class CorrosiveOozeCombatWatcher extends Watcher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (game.getTurn().getPhaseType().equals(TurnPhase.COMBAT)) {
|
|
||||||
if (event.getType() == GameEvent.EventType.ZONE_CHANGE) {
|
if (event.getType() == GameEvent.EventType.ZONE_CHANGE) {
|
||||||
if (((ZoneChangeEvent) event).getFromZone().equals(Zone.BATTLEFIELD)) {
|
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
|
// Check if a previous blocked or blocked by creatures is leaving the battlefield
|
||||||
for (Map.Entry<MageObjectReference, HashSet<MageObjectReference>> entry : oozeBlocksOrBlocked.entrySet()) {
|
for (Map.Entry<MageObjectReference, HashSet<MageObjectReference>> entry : oozeBlocksOrBlocked.entrySet()) {
|
||||||
for (MageObjectReference mor : entry.getValue()) {
|
for (MageObjectReference mor : entry.getValue()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue