Reset notified_by list per serialized batch

Fixes the case where a handler attempts to run for every batch after any
batch has notified it, regardless of whether the current batch did.
This commit is contained in:
Daniel Hokka Zakrisson 2012-11-28 22:04:44 +01:00
parent a56e1f31fa
commit b8d6dec5ad

View file

@ -444,6 +444,7 @@ class PlayBook(object):
self.inventory.restrict_to(handler.notified_by)
self._run_task(play, handler, True)
self.inventory.lift_restriction()
handler.notified_by = []
self.inventory.lift_also_restriction()