class Scene_Battle
EXCEPTION_NOSHIELD = []
# IDs of actor who can still defense when he/she isn't equipping shield
# e.g. [1,4,8]
alias wora_noshnodef_scebat_sacs start_actor_command_selection
def start_actor_command_selection
wora_noshnodef_scebat_sacs
if @active_battler.armor1_id != 0 or # Equipping Shield?
EXCEPTION_NOSHIELD.include?(@active_battler.id) # Exception actors
@actor_command_window.draw_item(2, true)
else
@actor_command_window.draw_item(2, false)
end
end
alias wora_noshnodef_scebat_updacs update_actor_command_selection
def update_actor_command_selection
if Input.trigger?(Input::C) and @actor_command_window.index == 2 and
@active_battler.armor1_id == 0 and !EXCEPTION_NOSHIELD.include?(@active_battler.id)
Sound.play_cancel
else
wora_noshnodef_scebat_updacs
end
end
end