Automatically Cast on Self

Hello,

I'm looking to create a skill that automatically casts on the user, like how Guard works. I can set the scope to User only, but I still need to select myself everytime I cast. Guard automatically casts on the user when selected. Any ideas? Thank you.
Are you using Yanfly's Battle Engine Core plugin? He changes the way that scope selection works, which you can override by changing the following in the JavaScript file (use Notepad, etc. to open and edit the file; look for Yanfly.BEC.Game_Action_needsSelection and replace the existing code with the following):

//=============================================================================// User skills & all allies skills don't require target selection//=============================================================================Yanfly.BEC.Game_Action_needsSelection = Game_Action.prototype.needsSelection;Game_Action.prototype.needsSelection = function() { if ($gameParty.inBattle() && this.item().scope === 0) return false; // Edit if ($gameParty.inBattle() && this.item().scope === 8) return false; if ($gameParty.inBattle() && this.item().scope === 11) return false; if ($gameParty.inBattle() && BattleManager.isForceSelection()) return true; return Yanfly.BEC.Game_Action_needsSelection.call(this);};This is my own personal edit; I'd suggest that you tweak it based upon your needs.

Original thread: https://forums.rpgmakerweb.com/threads/automatically-cast-on-self.54731/