How would I make the formula damage determined by multiple states, but then if the target isn't affected with debuffs, it does less damage? I'm currently experimenting with:
b.state?(X,X,X)? a.mat * Y : a.mat * Y
but it's doing nothing right now if the enemy has the states, so it's probably just my formula.
Does the formula only work if the target has *all* of these states? How would I make it so that any of these states will increase damage?
Would appreciate any help!
b.state?(X,X,X)? a.mat * Y : a.mat * Y
but it's doing nothing right now if the enemy has the states, so it's probably just my formula.
Does the formula only work if the target has *all* of these states? How would I make it so that any of these states will increase damage?
Would appreciate any help!
I have the formula written as: [61, 62].all? { |state_id| b.state?(state_id) } ? a.mat * 12 : a.mat