Commit 04fbb978 authored by Vee4's avatar Vee4

Update c100256025.lua

parent 92667f71
Pipeline #42092 failed with stages
in 1 minute and 27 seconds
...@@ -84,8 +84,11 @@ end ...@@ -84,8 +84,11 @@ end
function s.atktg(e,c) function s.atktg(e,c)
return not (c:IsType(TYPE_PENDULUM) and c:GetLevel()==0) return not (c:IsType(TYPE_PENDULUM) and c:GetLevel()==0)
end end
function s.costfilter(c,tp)
return Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,c)
end
function s.descost(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.descost(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,s.costfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,nil,1,1,nil) local g=Duel.SelectReleaseGroup(tp,nil,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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