#==============================================================================
# Module Atoa
#==============================================================================
module Atoa
#dont remove this line
Weapon_Need_Skills = {}
#dont remove this line
# Weapon_Need_Skills[skill_id] = [weapons_id]
Weapon_Need_Skills[57] = [1,2,3,4]
Weapon_Need_Skills[58] = [1,2,3,4]
Weapon_Need_Skills[59] = [1,2,3,4]
Weapon_Need_Skills[60] = [1,2,3,4]
end
#==============================================================================
# Game_Actor
#==============================================================================
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
include Atoa
#--------------------------------------------------------------------------
alias atoa_weapon_nedd_skill_can_use skill_can_use?
def skill_can_use?(skill_id)
if Weapon_Need_Skills.include?(skill_id) and Weapon_Need_Skills[skill_id] != nil and
@weapon_id != 0
unless Weapon_Need_Skills[skill_id].include?(@weapon_id)
return false
end
end
return atoa_weapon_nedd_skill_can_use(skill_id)
end
end