Commit 384c6112 authored by POLYMER's avatar POLYMER

fix

parent c26f26a8
...@@ -273,5 +273,5 @@ function cm.retcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -273,5 +273,5 @@ function cm.retcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.retop2(e,tp,eg,ep,ev,re,r,rp) function cm.retop2(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,tc:GetPreviousControler(),REASON_EFFECT)
end end
\ No newline at end of file
--波动武士·X光军刺 --波动武士·X光军刺
local m=11451434 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -49,7 +48,7 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +48,7 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_REMOVED,0,4,4,nil) local g=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_REMOVED,0,4,4,nil)
if #g>0 then if #g>0 then
Duel.SendtoDeck(g,tp,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
g=Duel.GetOperatedGroup() g=Duel.GetOperatedGroup()
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
......
...@@ -102,7 +102,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,7 +102,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if num>0 then if num>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,num,num,nil) local sg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,num,num,nil)
Duel.SendtoDeck(sg,tp,2,REASON_EFFECT) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
end end
end end
end end
......
...@@ -149,6 +149,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -149,6 +149,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local sg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,0,num,num,nil) local sg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,0,num,num,nil)
sg:ForEach(Card.SetStatus,STATUS_TO_HAND_WITHOUT_CONFIRM,true) sg:ForEach(Card.SetStatus,STATUS_TO_HAND_WITHOUT_CONFIRM,true)
Duel.SendtoHand(sg,tp,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
end end
end end
\ No newline at end of file
--天峦之王 --天峦之王
local m=11451768 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--public --public
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -102,7 +101,7 @@ function cm.retcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,7 +101,7 @@ function cm.retcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.retop(e,tp,eg,ep,ev,re,r,rp) function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,tp,REASON_EFFECT)
end end
function cm.indcon(e) function cm.indcon(e)
local c=e:GetLabelObject() local c=e:GetLabelObject()
......
...@@ -237,7 +237,7 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -237,7 +237,7 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
if not g then return end if not g then return end
local sg=g:Filter(cm.filter6,nil) local sg=g:Filter(cm.filter6,nil)
g:DeleteGroup() g:DeleteGroup()
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,tp,REASON_EFFECT)
end end
function cm.retcon2(e,tp,eg,ep,ev,re,r,rp) function cm.retcon2(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject() local g=e:GetLabelObject()
...@@ -252,5 +252,8 @@ function cm.retop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -252,5 +252,8 @@ function cm.retop2(e,tp,eg,ep,ev,re,r,rp)
if not g then return end if not g then return end
local sg=g:Filter(cm.filter7,nil) local sg=g:Filter(cm.filter7,nil)
g:DeleteGroup() g:DeleteGroup()
local sg1=sg:Filter(Card.IsPreviousControler,nil,tp)
Duel.SendtoHand(sg,tp,REASON_EFFECT) Duel.SendtoHand(sg,tp,REASON_EFFECT)
local sg2=sg:Filter(Card.IsPreviousControler,nil,1-tp)
Duel.SendtoHand(sg,1-tp,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -65,7 +65,7 @@ function cm.initial_effect(c) ...@@ -65,7 +65,7 @@ function cm.initial_effect(c)
local ge3=Effect.CreateEffect(c) local ge3=Effect.CreateEffect(c)
ge3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT) ge3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT)
ge3:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD) ge3:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD)
ge3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SET_AVAILABLE) ge3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_IMMUNE)
ge3:SetLabelObject(ge2) ge3:SetLabelObject(ge2)
Duel.RegisterEffect(ge3,0) Duel.RegisterEffect(ge3,0)
end end
......
...@@ -32,7 +32,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.cfilter,1,nil) and not eg:IsContains(e:GetHandler()) return eg:IsExists(cm.cfilter,1,nil) and not eg:IsContains(e:GetHandler())
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsRace(RACE_CYBERSE) and c:IsAbleToHand() return c:IsRace(RACE_CYBERSE) and c:IsAbleToHand() and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end end
function cm.spop(e,tp,eg,ep,ev,re,r,rp) function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) then Duel.HintSelection(Group.FromCards(e:GetHandler())) end if Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) then Duel.HintSelection(Group.FromCards(e:GetHandler())) end
...@@ -86,7 +86,7 @@ function cm.retcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,7 +86,7 @@ function cm.retcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.retop(e,tp,eg,ep,ev,re,r,rp) function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local tg=e:GetLabelObject():Filter(cm.retfilter,nil,e) local tg=e:GetLabelObject():Filter(cm.retfilter,nil,e)
for tc in aux.Next(tg) do Duel.SendtoHand(tc,nil,REASON_EFFECT) end for tc in aux.Next(tg) do Duel.SendtoHand(tc,tp,REASON_EFFECT) end
e:GetLabelObject():Clear() e:GetLabelObject():Clear()
end end
function cm.regop(e,tp,eg,ep,ev,re,r,rp) function cm.regop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -57,6 +57,7 @@ function c9911359.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,6 +57,7 @@ function c9911359.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.AdjustAll() Duel.AdjustAll()
Duel.ShuffleHand(1-tp) Duel.ShuffleHand(1-tp)
end end
if p==1-tp then Duel.ConfirmCards(1-tp,sg) end
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_SPSUMMON)
local tg=sg:Select(p,1,1,nil) local tg=sg:Select(p,1,1,nil)
Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP)
......
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