Commit 6a3c012b authored by TanakaKotoha's avatar TanakaKotoha

wadashimo

parent bf6c0b0a
...@@ -56,7 +56,7 @@ function cm.initial_effect(c) ...@@ -56,7 +56,7 @@ function cm.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_LEAVE_FIELD) e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetProperty(EFFECT_FLAG_DELAY) e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCountLimit(1,12004024+100) e4:SetCountLimit(1)
e4:SetCondition(c12004024.pencon) e4:SetCondition(c12004024.pencon)
e4:SetTarget(c12004024.pentg) e4:SetTarget(c12004024.pentg)
e4:SetOperation(c12004024.penop) e4:SetOperation(c12004024.penop)
...@@ -188,5 +188,5 @@ end ...@@ -188,5 +188,5 @@ end
function c12004024.penop(e,tp,eg,ep,ev,re,r,rp) function c12004024.penop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return end if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return end
local c=e:GetHandler() local c=e:GetHandler()
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
\ No newline at end of file
...@@ -43,7 +43,7 @@ function c12009014.recon(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c12009014.recon(e,tp,eg,ep,ev,re,r,rp)
end end
function c12009014.reop(e,tp,eg,ep,ev,re,r,rp) function c12009014.reop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.MoveToField(e:GetHandler(),tp,1-tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(e:GetHandler(),tp,1-tp,LOCATION_PZONE,POS_FACEUP,true)
end end
function c12009014.spcon(e,tp,eg,ep,ev,re,r,rp) function c12009014.spcon(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandler():GetControler() local tp=e:GetHandler():GetControler()
......
...@@ -47,13 +47,13 @@ function c12010004.spfilter(c,e,tp) ...@@ -47,13 +47,13 @@ function c12010004.spfilter(c,e,tp)
end end
function c12010004.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c12010004.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_XYZ)>0 if chk==0 then return Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_XYZ)>0
and Duel.IsExistingTarget(c12010004.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c12010004.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function c12010004.spop(e,tp,eg,ep,ev,re,r,rp) function c12010004.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_XYZ)<=0 then return false end if Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_XYZ)<=0 then return false end
if not Duel.IsExistingTarget(c12010004.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) then return false end if not Duel.IsExistingMatchingCard(c12010004.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) then return false end
local g=Duel.SelectMatchingCard(tp,c12010004.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c12010004.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
......
...@@ -44,7 +44,7 @@ function c12010005.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c12010005.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
end end
end end
......
...@@ -82,7 +82,7 @@ function c12011001.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,7 @@ function c12011001.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,c12011001.filter1,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c12011001.filter1,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.MoveToField(g:GetFirst(),tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(g:GetFirst(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,c12011001.filter1,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c12011001.filter1,tp,LOCATION_DECK,0,1,1,nil)
...@@ -135,4 +135,4 @@ function c12011001.adop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -135,4 +135,4 @@ function c12011001.adop1(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
end end
\ No newline at end of file
...@@ -74,4 +74,4 @@ function cm.thop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,4 +74,4 @@ function cm.thop1(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.MoveToField(g:GetFirst(),tp,tp,LOCATION_PZONE,POS_FACEUP,true) Duel.MoveToField(g:GetFirst(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
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