|
楼主 |
发表于 2019-1-31 23:23:49
|
显示全部楼层
4.对五虎断门刀和空明拳的识别!
现有的五虎断门刀和空明拳在pk状态下都是quest武功,这就意味着它不是真正的“正”属性和“空”属性,如果因为对手用了五虎和空明拳pfm,我们的克制模块跟着来回变招,那势必手忙脚乱,影响合气的积攒。
应对其实也很简单——
function kezhiwugongValue(kzValue,i,kezhiwugongName)
local tflag=true
if flag.yuxiao==true and kezhiwugongName=='玉箫剑法' then kzValue='险' end
if npc_kezhi==kzValue then
kflag=2
if flag.busy then
flag.busy=false
print('忙状态,再激发!')
else
tflag=false
print('敌不变,我不变!')
end
end
if tflag then
if kezhiwugongName~='五虎断门刀' then
if (job.name=='diemenglou' or job.name=='pk') and kezhiwugongName=='空明拳' then
print('假空属性,不变招!')
else
table.remove(npc_kezhi,i,kzValue)
table.insert(npc_kezhi,i,kzValue)
kezhiwugongsuccess(kzValue,kezhi_order[kzValue],i)
end
end
end
--if npc_wugong~=kezhiwugongName then
table.remove(npc_wugong,i,kezhiwugongName)
table.insert(npc_wugong,i,kezhiwugongName)
--print("npc_wugong="..npc_wugong)
--end
ColourNote ("red","blue",npc_name.."使用武功【"..kezhiwugongName.."】,武功属性:"..kzValue)
end
|
|