How can I make bosses immune to sudden death magic?

I have RPG maker MV and I've built a magic spell that causes damage and has a 1/3 chance of smoking the target in one hit. It works just fine and there are no problems against your average random encounter enemy, but I'd like to know how to program bosses to be immune to this spell (or at least the sudden death effect).
I let instakill skills factor in the target's state rate for KO and then give enemies that shouldnt be instakillable 0% for their KO state rate
I let instakill skills factor in the target's state rate for KO and then give enemies that shouldnt be instakillable 0% for their KO state rate
Thanks. I got it now.
I let instakill skills factor in the target's state rate for KO and then give enemies that shouldnt be instakillable 0% for their KO state rate
Actually to make it completely immune, set the enemy to resist state KO will work better than 0% state rate
Actually to make it completely immune, set the enemy to resist state KO will work better than 0% state rate
an enemy with resist ko will be unkillable by every means, not just instakill skills
an enemy with resist ko will be unkillable by every means, not just instakill skills
Oh that's true. Nice caught!
I have RPG maker MV and I've built a magic spell that causes damage and has a 1/3 chance of smoking the target in one hit. It works just fine and there are no problems against your average random encounter enemy, but I'd like to know how to program bosses to be immune to this spell (or at least the sudden death effect).
Late for the party here, but I would make a different element around this instakill and make bosses immune.
Late for the party here, but I would make a different element around this instakill and make bosses immune.
This is a great solution for spells that do damage equal to the target's max HP instead of applying the death state.
You can also do this in the damage formula (assuming you're using MV or MZ)
Just give bosses the <boss> notetag.
Then in the damage formula try:

JavaScript:
if(!b.meta.boss && Math.randomInt(100) < 33) {b.startAnimation(55, false, 2); b.addState(1)}; return dam;

where 'dam' is the original damage code for your skill.
If the instant kill works, which it will 33% of the time UNLESS the enemy has the boss tag, it will play an extra animation and kill the enemy.

Hope this helps!

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-bosses-immune-to-sudden-death-magic.170532/