Gurmal / ArenaMasters

MIT License
0 stars 0 forks source link

n:n relationship between fight and gladiator has attributes blocking fight#run from working correctly. #1

Closed Gurmal closed 7 years ago

Gurmal commented 7 years ago

originally the gladiator had attributes for initiative and hp but these are really properties of the specific fight they're participating in and so need to be in the fight item object. Added those but due to the rails magic it's unclear what attributes are being accessed. I believe the correct fix is to elmiinate them from the gladiator model entirely and update fight#run to make use of the correct attributes. Gladiator controller may need some tweaks to correctly initialize these in their new model.