Commit 4f088734 authored by POLYMER's avatar POLYMER

fix

parent 4fdc75bd
This diff is collapsed.
...@@ -89,9 +89,10 @@ function c28321714.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,9 +89,10 @@ function c28321714.thop(e,tp,eg,ep,ev,re,r,rp)
local fid,ct=e:GetLabel() local fid,ct=e:GetLabel()
local g=e:GetLabelObject() local g=e:GetLabelObject()
local sg=g:Filter(c28321714.cfilter,nil,fid) local sg=g:Filter(c28321714.cfilter,nil,fid)
g:DeleteGroup() --g:DeleteGroup()
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
--e:Reset()
end end
function c28321714.chkfilter(c) function c28321714.chkfilter(c)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT) return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
......
...@@ -9,6 +9,7 @@ function cm.initial_effect(c) ...@@ -9,6 +9,7 @@ function cm.initial_effect(c)
e11:SetCode(EVENT_FREE_CHAIN) e11:SetCode(EVENT_FREE_CHAIN)
e11:SetRange(LOCATION_HAND) e11:SetRange(LOCATION_HAND)
e11:SetCountLimit(1,m) e11:SetCountLimit(1,m)
e11:SetCondition(cm.thcon1)
e11:SetTarget(cm.thtg) e11:SetTarget(cm.thtg)
e11:SetOperation(cm.thop) e11:SetOperation(cm.thop)
c:RegisterEffect(e11) c:RegisterEffect(e11)
...@@ -17,10 +18,11 @@ function cm.initial_effect(c) ...@@ -17,10 +18,11 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAINING)
e2:SetCountLimit(1,m+10000000) e2:SetCountLimit(1,m+10000000)
e2:SetCondition(cm.thcon2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e11:Clone() local e3=e11:Clone()
e3:SetDescription(aux.Stringid(m,3)) e3:SetDescription(aux.Stringid(m,3))
e3:SetCondition(cm.thcon) e3:SetCondition(cm.thcon3)
e3:SetCountLimit(1,m+20000000) e3:SetCountLimit(1,m+20000000)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--spsummon --spsummon
...@@ -31,6 +33,15 @@ function cm.initial_effect(c) ...@@ -31,6 +33,15 @@ function cm.initial_effect(c)
e1:SetOperation(cm.op) e1:SetOperation(cm.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.thcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsMainPhase()
end
function cm.thcon2(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp
end
function cm.thcon3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>=3
end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO
end end
...@@ -60,7 +71,4 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +71,4 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(sg,nil,SEQ_DECKTOP,REASON_EFFECT) Duel.SendtoDeck(sg,nil,SEQ_DECKTOP,REASON_EFFECT)
end end
end end
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>=3
end end
\ No newline at end of file
...@@ -83,6 +83,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -83,6 +83,7 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,s.tgfilter,tp,LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectTarget(tp,s.tgfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function s.gcfilter(c) function s.gcfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsType(TYPE_FIELD) return c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsType(TYPE_FIELD)
......
...@@ -3,6 +3,7 @@ local s,id,o=GetID() ...@@ -3,6 +3,7 @@ local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--set --set
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
...@@ -56,6 +57,7 @@ function s.setfilter2(c,e,tp,type) ...@@ -56,6 +57,7 @@ function s.setfilter2(c,e,tp,type)
end end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function s.gcheck(g,mft,sft) function s.gcheck(g,mft,sft)
return g:FilterCount(Card.IsType,nil,TYPE_MONSTER)<=mft return g:FilterCount(Card.IsType,nil,TYPE_MONSTER)<=mft
......
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