Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
| /*: | |
| * @plugindesc Hides "Never" and "Menu Screen" Occasion skills from skill selection during combat. | |
| * @author Ben Hendel-Doying | |
| * | |
| * @help That's it! | |
| */ | |
| (function() { | |
| var SKILL_OCCASION_MENU = 2; | |
| var SKILL_OCCASION_NEVER = 3; | |
| var originalIncludesMethod = Window_SkillList.prototype.includes; | |
| Window_SkillList.prototype.includes = function(item) { | |
| if($gameParty._inBattle && (item.occasion === SKILL_OCCASION_MENU || item.occasion === SKILL_OCCASION_NEVER)) | |
| return false; | |
| return originalIncludesMethod.call(this, item); | |
| }; | |
| })(); |