battle_calcs.lua: fix a variable name