jonoxia / rpgbase

Generic Node.js/HTML5 role-playing game client/server
8 stars 6 forks source link

PC can cast a spell despite insufficient MP if you "REPEAT" it from previous round #53

Closed jonoxia closed 10 years ago

jonoxia commented 11 years ago

that should not be possible -- either the REPEAT command should show you an error and force you to pick something else, or the spell should fizzle when it gets to that PC's turn.

jonoxia commented 10 years ago

As of that last commit, the REPEAT command is now checking if commands are legal and stops you from REPEAT-ing if you have not enough MP to cast a spell. However the message is hard coded as "NOT ENOUGH MP" so it's not helpful for knowing WHO doesn't have enough MP, to cast what spell. Also there might be other reasons besides insufficient MP that a battle command is illegal, so the message should be more flexible.