for p in pairs(skillEnable) do
-- ain 200level->160
q=skillEnable[p]
if skills[p] and skills[q] then
skills[p].full=0
if q=='force' and (hp.pot<50 or skills[p].lvl<150) then
skills[p].full=1
end
--if (skills[p].lvl==skills[q].lvl and skills[p].pot==(skills[p].lvl+1)*(skills[p].lvl+1)) or skills[p].lvl>skills[q].lvl then
if skills[p].lvl>=skills[q].lvl then
skills[p].full=1
end
if skills[p].fullever then
skills[p].full=1
end
if skills[p].lvl>=hp.pot_max-100 then
skills[p].full=1
end
if p=="wuxiang-zhi" then
if not skills[p].olvl then skills[p].olvl=skills[p].lvl end
if skills[p].lvl > skills[p].olvl then
flag.wxjz=0
skills[p].olvl=skills[p].lvl
end
end
if p=="wuxiang-zhi" and (skills[p].lvl<200 or flag.wxjz==0) then
skills[p].full=1
end
end
end
if perform.force then
if not skills[perform.force] then
perform.force = nil
end
end
if not perform.force then
tmp.lvl = 0
for p in pairs(skills) do
q=skillEnable[p]
if q=="force" then
if skills[p].lvl > tmp.lvl then
tmp.lvl = skills[p].lvl
perform.force = p
end
end
end
end
if skills["parry"] and skills["parry"].lvl<hp.pot_max-100 and skills["parry"].lvl<450 then
flag.xuexi=1 -- (这里是说,如果parry小于450级的话,学习标记=1,也就意味着可以学习。)
end
end
而在函数function check_pot(p_cmd)中。。
if flag.type and flag.type~='lingwu' and flag.xuexi==1 and hp.pot>=l_pot then
return checkxue()
end
end
if hp.pot>=l_pot and skills["parry"] and skills["parry"].lvl<hp.pot_max-100 and skills["parry"].lvl>=450 then
flag.lingwu=1
end--(parry依然作为判断条件,如果parry>=450,那么领悟的标记=1,也就意味着触发领悟。)
if flag.lingwu==1 then
return checklingwu()
end
if score.party~="普通百姓" and perform.skill and skills[perform.skill] and skills[perform.skill].lvl<450 and hp.pot>=l_pot then
return checklingwu() --checkxue() 已经被我替换掉了,这里修改领悟或者学习