rustyscreeps / screeps-game-api

Typed bindings to the Screeps in-game API for WASM Rust AIs
MIT License
138 stars 44 forks source link

Fixed the AttackController event not deserializing correctly #514

Closed pajotg closed 4 months ago

pajotg commented 5 months ago

The AttackController event does not contain a data field, however the deserializer was expecting one causing it to incorrectly return a error. This was causing panics when getting the event log of a room whenever it contained a AttackController event.