Scope: 1 Ally (dead) - is this how it's supposed to work?

I could've sworn that setting this scope would not allow you to select a living character to target with the item or skill. But just now I tested in a new project without plugins and it doesn't seem to work. Am I going crazy? Did I break something somewhere that even extends to new projects? Or am I just remembering wrong? And if it's the latter, is there a simple, small plugin that does prevent you from selecting an invalid target for this scope? I could probably code it myself, but if I'm not going crazy, this seems like something pretty that has to have been done before...
Confirming that specifying a scope of 1 Ally (Dead) still allows you to select a living party member in battle (but appears to correctly prevent selection of a living party member in the menu).

I think you are correct that a Plugin would be needed to resolve the issue - something that modifies the logic to confirm a target that says if the scope is for a dead ally but you select a living ally, instead of continuing, it just plays the error sound effect and returns.
I can't recall where but i believe there is already a plugin that fixes this issue, since its not the first time someone has brought this topic up.
Did you take a look on Yanfly's Target Core ?
Most of Yanfly's plugins do not qualify as "small" or "simple", but thanks for the suggestion anyway.

As to the actual issue, I suppose I must've remembered trying it in the menu where it works. That kinda explains why I was so confused.
Just noting that I solved this with a variation on my code from the other thread... might roll it into a plugin at some point. It doesn't feel worthwhile releasing a 16-line plugin though...

For now, if anyone else wants to know how to do this, here's the code:

JavaScript:
    Window_BattleActor.prototype.isEnabled = function(index) {
        let actor = $gameParty.battleMembers()[index];
        let action = BattleManager.inputtingAction();
        return actor && action && (action.isForDeadFriend() ? actor.isDead() : actor.isAlive());
    };
  
    Window_BattleActor.prototype.isCurrentItemEnabled = function() {
        return this.isEnabled(this.index()) && Window_Selectable.prototype.isCurrentItemEnabled.call(this);
    };
  
    const old_drawActorItem = Window_BattleActor.prototype.drawItem;
    Window_BattleActor.prototype.drawItem = function(index) {
        this.changePaintOpacity(this.isEnabled(index));
        old_drawActorItem.call(this, index);
        this.changePaintOpacity();
    };
This works wonders! Not sure what game you are building up Solar, but I seem to be running in the same issues as you do, only a few weeks later...

Original thread: https://forums.rpgmakerweb.com/threads/scope-1-ally-dead-is-this-how-its-supposed-to-work.122937/