How do i attack enemies AND allies normally and with magic?

I am trying to make a final fantasy like game that is similar to the snes ones, in these games you can attack both allies AND enemies physically and with magic.
Whoever from what i saw i can only target OR the enemies OR the allies.
Is there really no way to fix it so that i can make a magic that can hit both enemies and allies or attack both enemies and allies?
that could be useful for the confuse status for example that is only dispatched when attacked physically by a allie or enemy, or for use healing spells since in final fantasy games you can use healing magic to both heal allys and damage undeads(wait is even possible to hurt undeads using healing magic here in rpg maker mv? i guess i will do another thread).
You'd need a target plugin for that as the engine doesnt allow thay functionality in its default settings
You'd need a target plugin for that as the engine doesnt allow thay functionality in its default settings
any ideas for target plugins then?
I don;t know of any, but will move this to plug-in requests as that is what you will need to do this.
I use Yanfly's "Selection Control" plugin for this. If you do use it you'll need these plugins as well:

http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/

http://yanfly.moe/2016/02/26/yep-74-target-core/

http://yanfly.moe/2016/04/22/yep-94-selection-control/

In the plugin parameters make sure to set "Actor or Enemy" to "TRUE".
I use Yanfly's "Selection Control" plugin for this. If you do use it you'll need these plugins as well:

http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/

http://yanfly.moe/2016/02/26/yep-74-target-core/

http://yanfly.moe/2016/04/22/yep-94-selection-control/

In the plugin parameters make sure to set "Actor or Enemy" to "TRUE".
Hum ok i will see it tomorrow since i will go sleep soon
I use Yanfly's "Selection Control" plugin for this. If you do use it you'll need these plugins as well:

http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/

http://yanfly.moe/2016/02/26/yep-74-target-core/

http://yanfly.moe/2016/04/22/yep-94-selection-control/

In the plugin parameters make sure to set "Actor or Enemy" to "TRUE".
it worked thanks

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-attack-enemies-and-allies-normally-and-with-magic.106621/