wolfang237
Active member
1) I have a good bit of code that applies the affects of haste but which scales with Mythic tier (the speed boost ends up being +70, as if it were an augmented mythic version of the spell).
It works swell except that the +5 bonus to attack, reflex, and dodge isn't applying itself to the attack...
The attack code worked earlier but other things were funky so I kept editing. Didn't change that part though so I'm not sure what's wrong with it now. The Dodge and Reflex, as said, work fine. Timing is Final Phase, 9900.
It works swell except that the +5 bonus to attack, reflex, and dodge isn't applying itself to the attack...
Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.SpcDisable] <> 0)
doneif (field[abilActive].value = 0)
[I] ~ spell adjustment should not stack.[/I]
doneif (hero.tagis[Hero.Hasted] <> 0)
[I]~first we calculate the base tier[/I]
if (#tiereffect[] = 1) then
field[abValue].value += (#tiereffect[]) - 1
else
field[abValue].value += (#tiereffect[]) - 2
endif
[I]~then we calculate combat bonuses[/I]
field[abValue4].value += .5 * field[abValue].value
field[abValue5].value += round(field[abValue4].value,0,1)
[I]~then we input the combat bonuses[/I]
hero.child[Attack].field[Bonus].value += field[abValue5].value
hero.child[ArmorClass].field[tACDodge].value += 1 + field[abValue5].value
hero.child[svRef].field[Bonus].value += 1 + field[abValue5].value
The attack code worked earlier but other things were funky so I kept editing. Didn't change that part though so I'm not sure what's wrong with it now. The Dodge and Reflex, as said, work fine. Timing is Final Phase, 9900.