Commit 795d163c authored by Tachibana's avatar Tachibana

得得得得得

parent 29669a83
Pipeline #11513 passed with stages
in 19 minutes and 59 seconds
......@@ -2,7 +2,6 @@
function c12300704.initial_effect(c)
--set
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_GRAVE_SPSUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE+LOCATION_HAND)
e1:SetCost(c12300704.secs)
......@@ -34,15 +33,19 @@ function c12300704.secs(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetLabelObject(c)
e1:SetLabel(tim)
e1:SetCountLimit(1)
e1:SetCondition(c12300704.retcon)
e1:SetOperation(c12300704.retop)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
end
function c12300704.retcon(e)
e:Reset()
local tc=e:GetLabelObject()
return tc:GetFieldID()==e:GetLabel()
end
function c12300704.retop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if tc:GetFieldID()~=e:GetLabel() then return end
e:Reset()
if tc:IsPreviousLocation(LOCATION_ONFIELD) then
Duel.ReturnToField(tc)
else Duel.SendtoHand(tc,nil,REASON_COST)
......
......@@ -42,7 +42,7 @@ function cm.mtcon()
return function(e,c,og)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(cm.check,tp,LOCATION_MZONE,0,1,c)
return Duel.IsExistingMatchingCard(cm.check,tp,LOCATION_MZONE,0,1,c) and Duel.IsPlayerCanSpecialSummonMonster(tp,16101113,nil,nil,3000,3000,10,RACE_FIEND,ATTRIBUTE_DARK)
end
end
function cm.mtdo()
......
......@@ -43,7 +43,7 @@ function cm.mtcon()
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(cm.check2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return g:CheckSubGroup(cm.gcheck,2,2,c,tp)
return g:CheckSubGroup(cm.gcheck,2,2,c,tp) and Duel.IsPlayerCanSpecialSummonMonster(tp,m+1,nil,nil,3000,3000,10,RACE_FIEND,ATTRIBUTE_DARK)
end
end
function cm.Excheck(c)
......
......@@ -48,7 +48,7 @@ function cm.mtcon()
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(cm.check2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return g:CheckSubGroup(cm.gcheck,2,2,c,tp)
return g:CheckSubGroup(cm.gcheck,2,2,c,tp) and Duel.IsPlayerCanSpecialSummonMonster(tp,m+1,nil,nil,3000,3000,10,RACE_FIEND,ATTRIBUTE_DARK)
end
end
function cm.Excheck(c)
......
......@@ -20,6 +20,7 @@ function cm.initial_effect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_HAND)
e3:SetCountLimit(1,m)
e3:SetCondition(cm.con)
e3:SetTarget(cm.tg)
e3:SetOperation(cm.op)
......
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