I am trying to do a skill that deals damage to an enemy while healing that deals damage using both the user's Def and M.Def instead of Atk and the user by 20% of the user's HP, but the healing seems to be exactly what I had set (.2).
Can anyone help fix my formula?
Can anyone help fix my formula?
Code:
100 + (a.def * 4 + a.mdef * 4 - b.def * 2); a.gainHp(0.2)