How to calculate attack

I have mireweave with 858 attack
When it has +30 attack with its buff I get +257
That’s 858 x 0,30 → ok
But if it gets -18% attack on top of +30 I get +56
Where does +56 comes from
I expected 858 x (0,3-0,18) → 103

There is something I don’t understand…
Can anyone help me understand the maths behind attack buffs
Thanks

2 Likes

Unlike mana generation, all attack/defense buffs/debuffs are calculated as percentages on modified values, as opposed to base stats. So Mireweave attack = 858

30% attack buff = 858 x (1+0.3) = 1115

18% attack debuff = 1115 x (1-0.18) = 914

Therefore, effective attack boost = 914 - 858 = 56

5 Likes

Thank you, I didn’t know it.
So that -18% is higher because its calculatesd in a second step.
Is there a fixed order for the stats, or it is by the order of assigning?

1 Like

The order does not matter, as it is simply 858 x (1+0.3) x (1-0.18), so either way it will end up at 914. :slight_smile:

2 Likes

Ohh no… I am stupider that I thought…
:frowning:

Thanks again
:slight_smile:

1 Like

Nyah yah, My Mireweave is more awesome!

You’re my hero once again @ThePirateKing

2 Likes

Thank you for the kind words, wise one. :blush:

1 Like