So the template I'm working on halves a lot of stuff, all DR, resistance, fast healing/regen, channel resistance, etc.
I came up with this code:
Which is compiling just fine, but it doesn't seem to be working. Hoping maybe another set of eyes can help.
I came up with this code:
Code:
foreach pick in hero from Ability where "SpecType.DR|SpecType.Resist|SpecType.SR|SpecType.FastHeal|thingid.xChanRes"
if (eachpick.field[abValue].value >=1) then
eachpick.field[abValue].value = round(eachpick.field[abValue].value/2, 0, -1)
endif
nexteach
Which is compiling just fine, but it doesn't seem to be working. Hoping maybe another set of eyes can help.