It looks right, but I haven't tested it. I also wouldn't use abValue for basic variable usage.
I would do something like:
Code:
var int_bonus as number
int_bonus = hero.child[aINT].field[aBonus].value
foreach pick in hero where wCategory.Firearm
eachpick.field[dmrBonus].value += int_bonus
nexteach
I will also note that the fields you are using may or may not be correct, I dont have HL handy to confirm.