Commit 9760fd3f authored by Nemo Ma's avatar Nemo Ma

fix

parent 5786fe96
......@@ -91,8 +91,7 @@ function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(cm.spfilter,c:GetControler(),LOCATION_EXTRA,0,c,sc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL)
local sg=g:Select(tp,5,5,c)
c:SetMaterial(g)
Duel.Remove(sg,POS_FACEDOWN,REASON_MATERIAL+REASON_LINK)
Duel.Remove(sg,POS_FACEDOWN,REASON_COST)
end
function cm.indtg(e,c)
return e:GetHandler():GetLinkedGroup():IsContains(c)
......
......@@ -123,6 +123,7 @@ end
function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.ReturnToField(tc,tc:GetPreviousPosition(),e:GetLabel())
e:Reset()
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -116,8 +116,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if hg:GetCount()>0 and Duel.SendtoHand(hg,tp,REASON_EFFECT)>0 and hg:GetFirst():IsLocation(LOCATION_HAND) then
Duel.ConfirmCards(1-tp,hg)
local dis=1<<c:GetSequence()
if Duel.Remove(c,0,REASON_EFFECT+REASON_TEMPORARY)>0 and c:IsLocation(LOCATION_REMOVED) then
local dis=1<<c:GetPreviousSequence()
if SNNM.DisMZone(tp)&dis>0 then return end
local zone=dis
if tp==1 then dis=((dis&0xffff)<<16)|((dis>>16)&0xffff) end
......@@ -148,4 +148,5 @@ end
function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.ReturnToField(tc,tc:GetPreviousPosition(),e:GetLabel())
e:Reset()
end
......@@ -140,6 +140,7 @@ end
function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.ReturnToField(tc,tc:GetPreviousPosition(),e:GetLabel())
e:Reset()
end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetAttackTarget()
......
......@@ -168,6 +168,7 @@ end
function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.ReturnToField(tc,tc:GetPreviousPosition(),e:GetLabel())
e:Reset()
end
function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local dis=e:GetLabel()
......
......@@ -133,6 +133,7 @@ end
function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.ReturnToField(tc,tc:GetPreviousPosition(),e:GetLabel())
e:Reset()
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local tn=Duel.GetTurnPlayer()
......
......@@ -100,4 +100,5 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
rsop.MoveToField(tc,tp,tp,LOCATION_MZONE,tc:GetPreviousPosition(),false,e:GetLabel())
--Duel.ReturnToField(tc,tc:GetPreviousPosition(),e:GetLabel())
e:Reset()
end
......@@ -132,6 +132,7 @@ end
function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.ReturnToField(tc,tc:GetPreviousPosition(),e:GetLabel())
e:Reset()
end
function cm.tdcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(function(c)return c:IsFaceup() and c:IsSetCard(0x3536)end,tp,LOCATION_REMOVED,0,nil)
......
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