View Single Post
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old November 10th, 2018, 11:53 AM
What is happening is the 2nd and 3rd copies are adding 1 each, since they have an xCount of 1.

You need to add a stop so that only the first copy of the class special adds the bonus. Like so:

Code:
field[abValue].value += field[xCount].value

~only do this if we are the first copy
doneif (tagis[Helper.FirstCopy] = 0)

hero.child[svFort].field[Bonus].value += field[abValue].value
hero.child[svWill].field[Bonus].value += field[abValue].value
Aaron is offline   #4 Reply With Quote