-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDisableSealedSkillCommand.js
44 lines (39 loc) · 1.4 KB
/
DisableSealedSkillCommand.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//=============================================================================
// DisableSealedSkillCommand.js
//=============================================================================
/*:
* @plugindesc Disables commands of sealed skill type in battle.
* @author Toru Higuruma
*
* @help DisableSealedSkillCommand v1.0 (2017-05-16)
* Copyright (c) 2017 Toru Higuruma
* This plugin is provided under the MIT License.
* https://git.io/tmv
*
* Plugin commands:
* This plugin does not provide plugin commands.
*/
/*:ja
* @plugindesc 戦闘中、封印されたスキルタイプのコマンドを選べなくします。
* @author Toru Higuruma
*
* @help DisableSealedSkillCommand v1.0 (2017-05-16)
* Copyright (c) 2017 Toru Higuruma
* このプラグインは MIT License の下で提供されます。
* https://git.io/tmv
*
* プラグインコマンド:
* このプラグインにプラグインコマンドはありません。
*/
(function() {
var _Window_ActorCommand_addSkillCommands =
Window_ActorCommand.prototype.addSkillCommands;
Window_ActorCommand.prototype.addSkillCommands = function() {
_Window_ActorCommand_addSkillCommands.call(this);
this._list.forEach(function(command) {
if (command.symbol === 'skill') {
command.enabled = !this._actor.isSkillTypeSealed(command.ext);
}
}, this);
};
})();