Commit fa1ccf00 authored by wind2009's avatar wind2009

Fix 獄神影機-ゼグレド

parent c7a57f6e
Pipeline #43003 passed with stages
in 4 minutes and 25 seconds
......@@ -42,12 +42,16 @@ function s.desfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0x1ce,0x1d2)
and c:IsType(TYPE_MONSTER)
end
function s.hdesfilter(c)
return c:IsSetCard(0x1ce,0x1d2) and c:IsType(TYPE_MONSTER) and c:IsPublic()
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(s.desfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c) end
local g=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,c)
g:AddCard(c)
if Duel.IsExistingMatchingCard(aux.NOT(Card.IsPublic),tp,LOCATION_HAND,0,1,nil) then
if Duel.IsExistingMatchingCard(aux.NOT(Card.IsPublic),tp,LOCATION_HAND,0,1,nil)
or Duel.IsExistingMatchingCard(s.hdesfilter,tp,LOCATION_HAND,0,1,nil) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,c,1,0,0)
else
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0)
......
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