Commit 3da12d95 authored by DailyShana's avatar DailyShana Committed by mercury233

clear operation info when copying effect (#1275)

parent 4a4d8da7
......@@ -37,10 +37,9 @@ function c22628574.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e:SetLabelObject(te)
Duel.ClearTargetCard()
local tg=te:GetTarget()
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
if tg then tg(e,tp,eg,ep,ev,re,r,rp,1) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
Duel.ClearOperationInfo(0)
end
function c22628574.operation(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -65,8 +65,8 @@ function c25339070.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.ClearOperationInfo(0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
end
function c25339070.cpop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -40,10 +40,10 @@ function c38844957.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local te=g:GetFirst():CheckActivateEffect(true,true,false)
e:SetLabelObject(te)
Duel.Remove(g,POS_FACEUP,REASON_COST)
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
local tg=te:GetTarget()
if tg then tg(e,tp,eg,ep,ev,re,r,rp,1) end
Duel.ClearOperationInfo(0)
end
function c38844957.operation(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -77,8 +77,8 @@ function c51728779.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.ClearOperationInfo(0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
end
function c51728779.cpop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -71,8 +71,8 @@ function c52840267.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.ClearOperationInfo(0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
end
function c52840267.cpop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -43,7 +43,6 @@ function c56981417.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.SelectTarget(tp,c56981417.filter,tp,LOCATION_GRAVE,0,1,1,nil)
local te=g:GetFirst():CheckActivateEffect(true,true,false)
Duel.ClearTargetCard()
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
e:SetLabel(te:GetLabel())
e:SetLabelObject(te:GetLabelObject())
......@@ -52,6 +51,7 @@ function c56981417.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
te:SetLabel(e:GetLabel())
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.ClearOperationInfo(0)
end
function c56981417.operation(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -34,10 +34,10 @@ function c58242947.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
if chk==0 then return true end
if not te then return end
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
local tg=te:GetTarget()
if tg then tg(e,tp,eg,ep,ev,re,r,rp,1) end
Duel.ClearOperationInfo(0)
end
function c58242947.operation(e,tp,eg,ep,ev,re,r,rp)
local te=c58242947[Duel.GetCurrentChain()]
......
......@@ -88,7 +88,6 @@ function c64756282.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
return tg and tg(e,tp,eg,ep,ev,re,r,rp,0,chkc,c)
end
if chk==0 then return true end
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
e:SetLabel(te:GetLabel())
e:SetLabelObject(te:GetLabelObject())
......@@ -97,6 +96,7 @@ function c64756282.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
te:SetLabel(e:GetLabel())
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.ClearOperationInfo(0)
end
function c64756282.cpop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -88,13 +88,12 @@ function c6511113.target(e,tp,eg,ep,ev,re,r,rp,chk)
local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
Duel.SendtoGrave(g,REASON_COST)
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
local tg=te:GetTarget()
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
Duel.ClearOperationInfo(0)
end
function c6511113.operation(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......@@ -134,7 +133,6 @@ function c6511113.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
Duel.SendtoGrave(g,REASON_COST)
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
local tg=te:GetTarget()
if tg then
......@@ -146,5 +144,5 @@ function c6511113.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
Duel.ClearOperationInfo(0)
end
......@@ -64,11 +64,11 @@ function c70369116.cptg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectMatchingCard(tp,c70369116.cpfilter,tp,LOCATION_DECK,0,1,1,nil)
local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true)
Duel.SendtoGrave(g,REASON_COST)
e:SetProperty(te:GetProperty())
local tg=te:GetTarget()
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.ClearOperationInfo(0)
end
function c70369116.cpop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -35,12 +35,11 @@ function c79766336.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.ClearTargetCard()
g:GetFirst():CreateEffectRelation(e)
local tg=te:GetTarget()
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
Duel.ClearOperationInfo(0)
end
function c79766336.operation(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
......@@ -62,8 +62,8 @@ function c88234365.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.ClearOperationInfo(0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
end
function c88234365.cpop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
......
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