Commit 77dde0da authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent 773b0f2a
......@@ -119,7 +119,7 @@ function cm.scop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil)
Duel.SynchroSummon(tp,sg:GetFirst(),nil)
e:GetHandler():RegisterFlagEffect(code+100,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,4))
e:GetHandler():RegisterFlagEffect(m+100,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,4))
end
end
function cm.xyzfilter(c)
......@@ -135,7 +135,7 @@ function cm.xyzop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=g:Select(tp,1,1,nil)
Duel.XyzSummon(tp,tg:GetFirst(),nil)
e:GetHandler():RegisterFlagEffect(code+200,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,5))
e:GetHandler():RegisterFlagEffect(m+200,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,5))
end
end
function cm.lkfilter(c)
......@@ -151,6 +151,6 @@ function cm.lkop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc then
Duel.LinkSummon(tp,tc,nil)
e:GetHandler():RegisterFlagEffect(code+300,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,6))
e:GetHandler():RegisterFlagEffect(m+300,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,6))
end
end
\ No newline at end of file
......@@ -49,7 +49,7 @@ end
function cm.nmfilter(c,code)
return c:IsCode(code) and c:IsAbleToDeck()
end
function cm.dfilter(c,mc)
function cm.dfilter(c,mc,tp)
return c:IsAbleToDeck() and Duel.IsExistingTarget(cm.nmfilter,tp,LOCATION_GRAVE,0,1,Group.FromCards(c,mc),c:GetCode())
end
function cm.gilter(g)
......@@ -59,7 +59,7 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.dfilter(chkc) end
local c=e:GetHandler()
if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and Duel.IsExistingTarget(cm.dfilter,tp,LOCATION_GRAVE,0,1,c,c) end
and Duel.IsExistingTarget(cm.dfilter,tp,LOCATION_GRAVE,0,1,c,c,tp) end
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_GRAVE,0,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local tt=g:SelectSubGroup(tp,cm.gilter,false,2,2)
......
......@@ -201,6 +201,7 @@ function cm.topop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(Card.IsAbleToHand,tp,LOCATION_PZONE,0,nil)
if num~=g1:GetCount() then return false end
if Duel.SendtoHand(g1,nil,REASON_EFFECT)==num then
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
e:GetHandler():SetStatus(STATUS_EFFECT_ENABLED,true)
end
end
\ No newline at end of file
......@@ -224,6 +224,7 @@ function cm.topop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(Card.IsAbleToHand,tp,LOCATION_PZONE,0,nil)
if num~=g1:GetCount() then return false end
if Duel.SendtoHand(g1,nil,REASON_EFFECT)==num then
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
e:GetHandler():SetStatus(STATUS_EFFECT_ENABLED,true)
end
end
\ No newline at end of file
......@@ -217,5 +217,6 @@ function cm.topop(e,tp,eg,ep,ev,re,r,rp)
if num~=g1:GetCount() then return false end
if Duel.SendtoHand(g1,nil,REASON_EFFECT)==num then
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
e:GetHandler():SetStatus(STATUS_EFFECT_ENABLED,true)
end
end
\ No newline at end of file
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