mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed issue 337
This commit is contained in:
parent
8a74175d21
commit
e8b5585b96
1 changed files with 7 additions and 2 deletions
|
@ -35,6 +35,7 @@ import mage.watchers.WatcherImpl;
|
|||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
|
@ -52,8 +53,12 @@ public class CastSpellLastTurnWatcher extends WatcherImpl<CastSpellLastTurnWatch
|
|||
|
||||
public CastSpellLastTurnWatcher(final CastSpellLastTurnWatcher watcher) {
|
||||
super(watcher);
|
||||
this.amountOfSpellsCastOnCurrentTurn = watcher.amountOfSpellsCastOnCurrentTurn;
|
||||
this.amountOfSpellsCastOnPrevTurn = watcher.amountOfSpellsCastOnPrevTurn;
|
||||
for (Entry<UUID, Integer> entry: watcher.amountOfSpellsCastOnCurrentTurn.entrySet()) {
|
||||
amountOfSpellsCastOnCurrentTurn.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
for (Entry<UUID, Integer> entry: watcher.amountOfSpellsCastOnPrevTurn.entrySet()) {
|
||||
amountOfSpellsCastOnPrevTurn.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue