Trying to create a skill that does the following:
1) Transfer 50% of current MP to an ally.
I know this can be done with a simple damage formula but I'm not sure where to change/what to add?
var h = a.mp * 2 - b.mdf, m = 2*h; a.gainMp(-m); b.gainMp(m); a.gainMp(-m); h
I'm using the YEP library, so if there's a simpler way than creating a damage formula, I'm here for it.
1) Transfer 50% of current MP to an ally.
I know this can be done with a simple damage formula but I'm not sure where to change/what to add?
var h = a.mp * 2 - b.mdf, m = 2*h; a.gainMp(-m); b.gainMp(m); a.gainMp(-m); h
I'm using the YEP library, so if there's a simpler way than creating a damage formula, I'm here for it.