|
for i = 1, 10 do
local kfid = JY.Person[eid]["武功" .. i]
if kfid == 43 and JY.Person[eid]["体力"] > 10 and WAR.Person[emenyid]["反击武功"] == -1 and WAR.Person[emenyid]["我方"] ~= WAR.Person[WAR.CurID]["我方"] and ((not JLSD(30, 70, eid)) or (eid == 51 and JLSD(20, 80, eid)) or (WAR.tmp[1000 + eid] == 1 and JLSD(30, 70, eid))) then
local p = JY.Person[eid]
local dzlv = p["拳掌功夫"] + p["御剑能力"] + p["耍刀技巧"] + p["特殊兵器"]
local dzwz = nil
if dzlv >= 300 or eid == 51 then
dzwz = CC.WARS88
--离合参商
WAR.DZXYLV[eid] = 3
elseif dzlv >= 220 then
dzwz = CC.WARS89
--斗转星移
WAR.DZXYLV[eid] = 2
else
dzwz = CC.WARS90
--北斗移辰
WAR.DZXYLV[eid] = 1
end
if WAR.Person[emenyid][CC.TXWZ2] ~= nil then
WAR.Person[emenyid][CC.TXWZ2] = WAR.Person[emenyid][CC.TXWZ2] .. "+" .. dzwz
else
WAR.Person[emenyid][CC.TXWZ2] = dzwz
end
if WAR.Person[emenyid][CC.TXDH] == nil then
WAR.Person[emenyid][CC.TXDH] = math.fmod(kfid, 10) + 85
end
WAR.Person[emenyid]["反击武功"] = wugong
JY.Person[eid]["体力"] = JY.Person[eid]["体力"] - 3
break;
end
end
|
|