I think it may be your combat formula. I'm only well read on OTHire based scripts, but maybe you should replace your combat formula with something really simple just to test.
This probably won't work but you can try it!
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.68, -0, -1.3, 0)