I want to set it up so that an actor (actor 3) draws from their MAT rather than ATK for their normal attack. I figured the formula that works for this is:
My question is this: Am I correct in thinking think that this formula, as written, also applies to the third enemy in the database as well as the third actor? And if so, how can I get it to be actor only?
Code:
a.id == 3 ? a.mat * 4 - b.def * 2 : a.atk * 4 - b.def * 2
My question is this: Am I correct in thinking think that this formula, as written, also applies to the third enemy in the database as well as the third actor? And if so, how can I get it to be actor only?