forked from External/mage
refactor the copy functionality for no-args watchers
This commit is contained in:
parent
311532a6e7
commit
6703ba693d
52 changed files with 73 additions and 538 deletions
|
|
@ -22,16 +22,6 @@ public class SourceDidDamageWatcher extends Watcher {
|
|||
super(WatcherScope.GAME);
|
||||
}
|
||||
|
||||
public SourceDidDamageWatcher(final SourceDidDamageWatcher watcher) {
|
||||
super(watcher);
|
||||
this.damageSources.addAll(watcher.damageSources);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SourceDidDamageWatcher copy() {
|
||||
return new SourceDidDamageWatcher(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == EventType.DAMAGED_CREATURE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue