Commit 31791ffe authored by POLYMER's avatar POLYMER

fix

parent 3bae9968
...@@ -79,13 +79,13 @@ function c28315844.effop(c) ...@@ -79,13 +79,13 @@ function c28315844.effop(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c28315844.regcheck(g) function c28315844.regcheck(g)
return (g:FilterCount(Card.IsControler,nil,0)==1 or Duel.GetFieldGroup(0,LOCATION_ONFIELD,0)==0) return (g:FilterCount(Card.IsControler,nil,0)==1 or Duel.GetFieldGroupCount(0,LOCATION_ONFIELD,0)==0)
and (g:FilterCount(Card.IsControler,nil,1)==1 or Duel.GetFieldGroup(1,LOCATION_ONFIELD,0)==0) and (g:FilterCount(Card.IsControler,nil,1)==1 or Duel.GetFieldGroupCount(1,LOCATION_ONFIELD,0)==0)
end end
function c28315844.regop(e,tp,eg,ep,ev,re,r,rp) function c28315844.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local p=c:GetPreviousControler() local p=c:GetPreviousControler()
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local g=Duel.GetFieldGroup(p,LOCATION_ONFIELD,LOCATION_ONFIELD)
if c:IsReason(REASON_DESTROY) and #g>0 then-- and Duel.SelectYesNo(p,aux.Stringid(28315844,2)) if c:IsReason(REASON_DESTROY) and #g>0 then-- and Duel.SelectYesNo(p,aux.Stringid(28315844,2))
Duel.Hint(HINT_CARD,0,28315844) Duel.Hint(HINT_CARD,0,28315844)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_DESTROY)
......
...@@ -1257,6 +1257,7 @@ function s.Checkmate_chop(_op,_g) ...@@ -1257,6 +1257,7 @@ function s.Checkmate_chop(_op,_g)
end end
end end
function s.Sarcoveil_Sort(c) function s.Sarcoveil_Sort(c)
if not CATEGORY_MSET then CATEGORY_MSET=0 en
if s.Sarcoveil_Grave_Sort then return end if s.Sarcoveil_Grave_Sort then return end
s.Sarcoveil_Grave_Sort=true s.Sarcoveil_Grave_Sort=true
local ge1=Effect.CreateEffect(c) local ge1=Effect.CreateEffect(c)
......
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