Ah, well, of course. There, all deffence is read into the attack parameter, and the defence is returned to 0. This code is from the display of the dialog that you are talking about
upd: I can give you the code with the hooker so that the defence is displayed. Necessary?