So I'm doing the adjustment for Litany of Defense from UC and it doubles the enhancement bonus of all worn armor ... so I figure something like this:
The earliest I can run that and get the enhancement bonus on the armor is Post-Attributes/5001 and I've done that and see the numbers change via debug, but it doesn't change the AC later.
The only other way I can think of would be to just add that straight to armor class, but that would mess things up if they were carrying armor that wasn't being used at the time.
Any ideas?
Code:
~if we're not on, get out now
doneif (field[pIsOn].value = 0)
foreach pick in hero from BaseArmor where "EquipType.Armor"
eachpick.field[arBonus].value += eachpick.field[arBonus].value
nexteach
The earliest I can run that and get the enhancement bonus on the armor is Post-Attributes/5001 and I've done that and see the numbers change via debug, but it doesn't change the AC later.
The only other way I can think of would be to just add that straight to armor class, but that would mess things up if they were carrying armor that wasn't being used at the time.
Any ideas?