Commit 313bd7a0 authored by POLYMER's avatar POLYMER

fix

parent fc791054
...@@ -131,7 +131,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -131,7 +131,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.discon(e,tp,eg,ep,ev,re,r,rp) function s.discon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and e:GetHandler():GetFlagEffect(1)>0 return rp==1-tp and e:GetHandler():GetFlagEffect(FLAG_ID_CHAINING)>0
end end
function s.efilter(e,te) function s.efilter(e,te)
return te==e:GetLabelObject() return te==e:GetLabelObject()
...@@ -140,7 +140,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -140,7 +140,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,0,id)
if Duel.TossCoin(tp,1)>0 then if Duel.TossCoin(tp,1)>0 then
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,0,nil) local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
for tc in aux.Next(g) do for tc in aux.Next(g) do
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -42,7 +42,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(eg,EVENT_CUSTOM+id,re,r,rp,ep,ev) Duel.RaiseEvent(eg,EVENT_CUSTOM+id,re,r,rp,ep,ev)
end end
function s.disfilter(c,tp) function s.disfilter(c,tp)
local g=Duel.GetMatchingGroup(aux.NegateAnyFilter,tp,LOCATION_MZONE,0,nil):GetMaxGroup(Card.GetAttack) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil):GetMaxGroup(Card.GetAttack)
return g and #g>0 and g:IsContains(c) return g and #g>0 and g:IsContains(c)
end end
function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
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