This Shield Focus feat is still kicking me arse. I can't seem to get the tag recognition right. here is what I have so far, what am I doing wrong?
Phase: Final Priority: 10000 Index: 1
var bonus as number
if (#hasfeat[fShieldFoc] + #hasfeat[fGrShieldF] = 1) then
bonus = 1
elseif (#hasfeat[fShieldFoc] + #hasfeat[fGrShieldF] = 2) then
bonus = 2
endif
if (tagcount[Hero.EquipShld] = 1) then
~ Add a +1 Shield Bonus to our armor class
hero.child[ArmorClass].field[tACFlat].value = hero.child[ArmorClass].field[tACFlat].value + bonus
hero.child[ArmorClass].field[tAC].value = hero.child[ArmorClass].field[tAC].value + bonus
endif
If I remove the "if (tagcount[Hero.EquipShld] = 1) then" and the endif at the end, the bonus is applied even when a shield is equipped, but when I add that line the bonus is never shown, whether a shield is equipped or not. I tried a different tack as well, placing before the "var bonus as number"
~ If we're not equipping a shield, just get out now
if (tagis[Hero.EquipShld] = 0) then
done
endif
and again, the bonus never shows....
|