RMMV Yanfly Battle Engine: Disable target immortality, Multi hit skills targeting dead battlers

Joined
Jun 2, 2020
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMMV
If a multi hit skill (whether its "X random enemies" or "Repeat: x") is used against a target, and the target dies midway through the skill, they can still be targeted.

My first thought was to disable the immortality feature, but there was no plugin config for it, contrary to what the plugin description said. So, I commented out line 1369 so that immortality isn't added to targets at the start of every action.

Original Code:
Code:
Yanfly.BEC.DefaultActionSetup = [
    ['CLEAR BATTLE LOG'],
    ['DISPLAY ACTION'],
    ['IMMORTAL', ['TARGETS', 'TRUE']],
    ['PERFORM START'],
    ['WAIT FOR MOVEMENT'],
    ['CAST ANIMATION'],
    ['WAIT FOR ANIMATION']
];

Line 1369 is " ['IMMORTAL', ['TARGETS', 'TRUE']], "

So, now targets aren't immortal during actions, now what?
When I use the multi hit skill, the targets will collapse when they reach 0 HP, but they can still be targeted despite being dead, but only for the duration of the action.
Any actions afterwards aren't able to target the dead targets.

How can I make it so targets can't be targeted if they die?

TL;DR In battle, targets that die can still be hit by the same skill if the skill has multiple hits.

Edit: A sample project to test what I'm talking about. Open up a test battle with the bats, and use your regular attack as Harold.
Edit 2: Removed Google Drive link due to fear of exposing gmail. To recreate the bug, use a "4 random enemies" target skill that one shots enemies. Have two enemies in a troop, and use the skill on them. Then, I suggest repeating the same steps as above after commenting out Line 1369 on the Battle Core.
 
Last edited:

Latest Threads

Latest Profile Posts

Lately I have been taking a break from game and resource making so I won't get burnt out. But I am also interested in the Game Jams this site periodically holds. It'd be great if I knew when the next one, if any, is planned.
elexy 1.2.pngSome bust art to be cropped and cleaned. May use in special decision moments. Depending on how it looks in game I may cut it.
Tiamat-86 wrote on ATT_Turan's profile.
apparently since its turning 15 years old this year the ps3 is considered "retro". now how old do you feel?
guess that means im an "antique" gamer since ill still play games as old as i am.
"you know your getting old when your childhood console changes ethnicity" lol it turned yellow
I'm making Toilet in Wonderland 2. and tell vinny about it lol

Forum statistics

Threads
115,346
Messages
1,089,175
Members
150,021
Latest member
Jackitrick
Top