A little help with a Damage Formula?

I checked the excelent guide to damage formulas and it helped me a lot. But now I'm having a struggle with a very complicated skill.

My skill is supposed to heal 200 HP to an ally, then if the CASTER is under an specific state, it will heal 500.
So the formula I ended with is this:
Code:
200; a.state?(67) ? a.hp += 500 : 0

But it end healing like 2700 one time to the single ally I target, even if its the caster. Its even possible to create a formula that heal 2 individuals differently? and why do I end with those 2700 HP healing instead of 500 or 200?
you missed one thing about the damage formula:

the number applied is the last number used.

do the following instead:

a.state?(67) ? a.hp +=500 : 0; 200
you missed one thing about the damage formula:

the number applied is the last number used.

do the following instead:

a.state?(67) ? a.hp +=500 : 0; 200
Awesome! Now it work, but for some reason the +500 doesn't show a pop up, but is applied to the caster, but I guess for now this will work. Thanks for your help!

Original thread: https://forums.rpgmakerweb.com/threads/a-little-help-with-a-damage-formula.149350/