Commit 781b16e3 authored by Momobako's avatar Momobako

Push by Appveyor

parent 19518648
...@@ -36,7 +36,7 @@ function cm.initial_effect(c) ...@@ -36,7 +36,7 @@ function cm.initial_effect(c)
e3:SetRange(LOCATION_HAND) e3:SetRange(LOCATION_HAND)
e3:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) e3:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:IsType(TYPE_MONSTER) and tc:IsPreviousLocation(LOCATION_DECK) and tc:IsPreviousControler(1-tp) and (not tc:IsReason(REASON_DRAW) or tc:IsPublic()) return eg:GetCount()==1 and tc:IsType(TYPE_MONSTER) and tc:IsPreviousLocation(LOCATION_DECK) and tc:GetPreviousControler()==1-tp and (not tc:IsReason(REASON_DRAW) or tc:IsPublic())
end) end)
e3:SetTarget(cm.SelfSpsummonTarget) e3:SetTarget(cm.SelfSpsummonTarget)
e3:SetOperation(cm.SelfSpsummonTarget) e3:SetOperation(cm.SelfSpsummonTarget)
...@@ -99,7 +99,7 @@ function cm.Copy(c,tc) ...@@ -99,7 +99,7 @@ function cm.Copy(c,tc)
c:ResetFlagEffect(m) c:ResetFlagEffect(m)
c:ResetEffect(ccd,RESET_COPY) c:ResetEffect(ccd,RESET_COPY)
end end
local ecd=c:CopyEffect(rcd,RESET_EVENT+0x1fe0000,1) local ecd=c:CopyEffect(code,RESET_EVENT+0x1fe0000,1)
c:RegisterFlagEffect(m,RESET_EVENT+0x1fe0000,0,1,ecd) c:RegisterFlagEffect(m,RESET_EVENT+0x1fe0000,0,1,ecd)
end end
function cm.SelfSpsummonTarget(e,tp,eg,ep,ev,re,r,rp,chk) function cm.SelfSpsummonTarget(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -121,7 +121,7 @@ function cm.copyfilter(c) ...@@ -121,7 +121,7 @@ function cm.copyfilter(c)
end end
function cm.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and cm.copyfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and cm.copyfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(cm.copyfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and c:GetFlagEffect(m-700000)==0 end if chk==0 then return Duel.IsExistingTarget(cm.copyfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and e:GetHandler():GetFlagEffect(m-700000)==0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,cm.copyfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,cm.copyfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
...@@ -129,7 +129,7 @@ function cm.copyop(e,tp,eg,ep,ev,re,r,rp) ...@@ -129,7 +129,7 @@ function cm.copyop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsFaceup() and not tc:IsType(TYPE_TOKEN) and c:GetFlagEffect(m-700000)==0 then if tc and c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsFaceup() and not tc:IsType(TYPE_TOKEN) and c:GetFlagEffect(m-700000)==0 then
cm.Copy(c,code) cm.Copy(c,tc)
c:RegisterFlagEffect(m-700000,RESET_EVENT+0x1fe0000,0,10) c:RegisterFlagEffect(m-700000,RESET_EVENT+0x1fe0000,0,10)
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