forked from External/mage
refactor the copy functionality for no-args watchers
This commit is contained in:
parent
80e7593bb1
commit
1852de2f47
52 changed files with 73 additions and 538 deletions
|
|
@ -29,18 +29,6 @@ public class ProwlWatcher extends Watcher {
|
|||
super(WatcherScope.GAME);
|
||||
}
|
||||
|
||||
private ProwlWatcher(final ProwlWatcher watcher) {
|
||||
super(watcher);
|
||||
for (Entry<UUID, Set<SubType>> entry : watcher.damagingSubtypes.entrySet()) {
|
||||
damagingSubtypes.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProwlWatcher copy() {
|
||||
return new ProwlWatcher(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == EventType.DAMAGED_PLAYER) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue