mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
- Fixed #9943
This commit is contained in:
parent
00c58eb6c0
commit
86de30f5b8
1 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,7 @@ import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default watcher, no needs to add it to ability
|
* Default watcher, no need to add it to ability
|
||||||
*
|
*
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -113,7 +113,9 @@ public class ManaPaidSourceWatcher extends Watcher {
|
||||||
public void watch(GameEvent event, Game game) {
|
public void watch(GameEvent event, Game game) {
|
||||||
switch (event.getType()) {
|
switch (event.getType()) {
|
||||||
case ZONE_CHANGE:
|
case ZONE_CHANGE:
|
||||||
if (((ZoneChangeEvent) event).getFromZone() == Zone.BATTLEFIELD) {
|
if (((ZoneChangeEvent) event).getFromZone() == Zone.BATTLEFIELD
|
||||||
|
// Bug #9943 Memory Deluge cast from graveyard during the same turn
|
||||||
|
|| ((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {
|
||||||
manaMap.remove(event.getTargetId());
|
manaMap.remove(event.getTargetId());
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue