jamro / jsbattle

JavaScript Programming Game (inspired by RoboCode)
http://jsbattle.jmrlab.com
MIT License
105 stars 47 forks source link

UltimateBattleDescriptor haven't cloned timeLimit #31

Closed khoanguyen-3fc closed 4 years ago

khoanguyen-3fc commented 4 years ago

https://github.com/jamro/jsbattle/blob/57cf4a4403d3147f2f2c75f550580d33eb868b65/packages/jsbattle-engine/src/engine/UltimateBattleDescriptor.js#L109-L120

so, createUltimateBattleDescriptor always have zero timeLimit

https://github.com/jamro/jsbattle/blob/57cf4a4403d3147f2f2c75f550580d33eb868b65/packages/jsbattle-engine/src/engine/Simulation.js#L432-L437