Commit c5e7a597 authored by Tachibana's avatar Tachibana

ndyd

parent 74d47a6f
No preview for this file type
...@@ -86,10 +86,10 @@ end ...@@ -86,10 +86,10 @@ end
--e2 --e2
function c33200103.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33200103.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,e:GetHandler()) local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c33200103.desop(e,tp,eg,ep,ev,re,r,rp) function c33200103.desop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -78,14 +78,14 @@ function c33200261.efilter(e,te) ...@@ -78,14 +78,14 @@ function c33200261.efilter(e,te)
end end
--e2 --e2
function c33200261.gifilter(c) function c33200261.igfilter(c)
return c:IsFaceup() and c:IsCode(33200250) return c:IsFaceup() and c:IsCode(33200250)
end end
function c33200261.igtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33200261.igtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c33200261.gifilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c33200261.igfilter(chkc) end
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsExistingTarget(c33200261.gifilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsExistingTarget(c33200261.igfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c33200261.gifilter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c33200261.igfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
...@@ -118,13 +118,13 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -118,13 +118,13 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(XY.maganeckfilter0,tp,LOCATION_GRAVE,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(XY.maganeckfilter10,tp,LOCATION_GRAVE,0,1,nil,tp) end
end end
function cm.spop2(e,tp,eg,ep,ev,re,r,rp) function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(XY.maganeckfilter0,tp,LOCATION_GRAVE,0,1,nil,tp) then return end if not Duel.IsExistingMatchingCard(XY.maganeckfilter10,tp,LOCATION_GRAVE,0,1,nil,tp) then return end
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33403530,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33403530,1))
local g=Duel.SelectMatchingCard(tp,XY.maganeckfilter0,tp,LOCATION_GRAVE,0,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,XY.maganeckfilter10,tp,LOCATION_GRAVE,0,1,1,nil,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
local tc=g:GetFirst() local tc=g:GetFirst()
if tc:IsCode(33403521) then if tc:IsCode(33403521) then
......
...@@ -81,10 +81,10 @@ function c45745913.matfilter1(c) ...@@ -81,10 +81,10 @@ function c45745913.matfilter1(c)
end end
--e1 --e1
function c45745913.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45745913.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,e:GetHandler()) local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c45745913.desop(e,tp,eg,ep,ev,re,r,rp) function c45745913.desop(e,tp,eg,ep,ev,re,r,rp)
......
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