Fixed bug where only one dirty point would be updated at dungeon mask.
Implemented Zap Device.