Commit 74090a74 authored by fallenstardust's avatar fallenstardust

fix LEDE-JP032 script

parent 21be1ccd
...@@ -32,7 +32,7 @@ function s.tgspfilter(c,g,e,tp) ...@@ -32,7 +32,7 @@ function s.tgspfilter(c,g,e,tp)
end end
function s.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,c,c,e,tp) end if chk==0 then return not c:IsPublic() and Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,c,c,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local sc=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_HAND,0,1,1,c,c,e,tp):GetFirst() local sc=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_HAND,0,1,1,c,c,e,tp):GetFirst()
Duel.ConfirmCards(1-tp,sc) Duel.ConfirmCards(1-tp,sc)
...@@ -46,6 +46,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,6 +46,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
function s.tgop(e,tp,eg,ep,ev,re,r,rp) function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then return false end
local c=e:GetHandler() local c=e:GetHandler()
local sc=e:GetLabelObject() local sc=e:GetLabelObject()
local g=Group.FromCards(c,sc) local g=Group.FromCards(c,sc)
......
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