Commit 4f088734 authored by POLYMER's avatar POLYMER

fix

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