I am trying to add +2 damage to the hero when they fight with a single one-hand melee weapon. My current results give every weapon +2 damage.
Pre-attributes Priority 10000 Index 1
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
foreach pick in hero from BaseWep where "wCategory.Melee & (wClass.Light | wClass.OneHanded)"
if (eachpick.field[gIsEquip].value <> 0) then
field[abValue].value += 1
endif
nexteach
~ Add to our damage bonus
hero.child[Damage].field[tDamBonus].value += field[abValue2].value
Thanks for any insight you can provide.
Pre-attributes Priority 10000 Index 1
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
foreach pick in hero from BaseWep where "wCategory.Melee & (wClass.Light | wClass.OneHanded)"
if (eachpick.field[gIsEquip].value <> 0) then
field[abValue].value += 1
endif
nexteach
~ Add to our damage bonus
hero.child[Damage].field[tDamBonus].value += field[abValue2].value
Thanks for any insight you can provide.