#--------------------------------------------------------------------------
# * 判定技能是否可用
# skill : 技能
#--------------------------------------------------------------------------
def skill_can_use?(skill)
return false unless skill.is_a?(RPG::Skill)
return false unless movable?
return false if silent? and skill.spi_f > 0
return false if calc_mp_cost(skill) > mp
#########################變量設定########################################
return false if skill_id == 88 and $game_variables[11] < 100
if $game_temp.in_battle
return skill.battle_ok?
else
return skill.menu_ok?
end
end
#--------------------------------------------------------------------------
# * 判定技能是否可用
# skill : 技能
#--------------------------------------------------------------------------
def skill_can_use?(skill)
return false unless skill.is_a?(RPG::Skill)
return false unless movable?
return false if silent? and skill.spi_f > 0
return false if calc_mp_cost(skill) > mp
#########################變量設定########################################
return false if skill_id == 88 and $game_variables[11] < 100
if $game_temp.in_battle
return skill.battle_ok?
else
return skill.menu_ok?
end
end