改這樣def include?(item) if Chd114::Skill::Skilltype[item.id]!=[] for i in 0...Chd114::Skill::Skilltype[item.id].size#多类型技能的判定 return true if item && Chd114::Skill::Skilltype[item.id][i] == @stype_id end end return item && item.stype_id == @stype_id end
def include?(item)
if Chd114::Skill::Skilltype[item.id]!=[]
for i in 0...Chd114::Skill::Skilltype[item.id].size#多类型技能的判定
return true if item && Chd114::Skill::Skilltype[item.id][i] == @stype_id
end
end
return item && item.stype_id == @stype_id
end
|