Commit f5bcb2b1 authored by wind2009's avatar wind2009

Fix Drake_shark_gf

parent 1d9704e6
Pipeline #32560 passed with stages
in 1 minute and 24 seconds
...@@ -119,6 +119,21 @@ function s.Drake_shark_gf(int_ct,int_tp,xc) ...@@ -119,6 +119,21 @@ function s.Drake_shark_gf(int_ct,int_tp,xc)
if #eg>0 then if #eg>0 then
ct=ct+eg:GetClassCount(s.sxvalue,int_tp,xc) ct=ct+eg:GetClassCount(s.sxvalue,int_tp,xc)
end end
local tc=g:GetFirst()
while tc do
local te=tc:IsHasEffect(EFFECT_XYZ_LEVEL,int_tp)
if te then
local evf=te:GetValue()
if evf then
local ev=evf(te,tc,xc)
local lmct=(ev>>12)&0xf
if lmct>0 and lmct>g:GetCount() then
return false
end
end
end
tc=g:GetNext()
end
return ct>=int_ct return ct>=int_ct
end end
end end
......
...@@ -75,6 +75,21 @@ function s.Drake_shark_gf(int_ct,int_tp,xc) ...@@ -75,6 +75,21 @@ function s.Drake_shark_gf(int_ct,int_tp,xc)
if #eg>0 then if #eg>0 then
ct=ct+eg:GetClassCount(s.sxvalue,int_tp,xc) ct=ct+eg:GetClassCount(s.sxvalue,int_tp,xc)
end end
local tc=g:GetFirst()
while tc do
local te=tc:IsHasEffect(EFFECT_XYZ_LEVEL,int_tp)
if te then
local evf=te:GetValue()
if evf then
local ev=evf(te,tc,xc)
local lmct=(ev>>12)&0xf
if lmct>0 and lmct>g:GetCount() then
return false
end
end
end
tc=g:GetNext()
end
return ct>=int_ct return ct>=int_ct
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment