Commit 6e05501c authored by Tachibana's avatar Tachibana

得得得得得

parent 0f2680fd
Pipeline #13235 passed with stages
in 35 minutes and 34 seconds
......@@ -49,6 +49,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local sg=ag:SelectWithSumGreater(tp,Card.GetLevel,g:GetFirst():GetLevel())
Duel.Release(sg,REASON_EFFECT)
Duel.SpecialSummonComplete()
g:GetFirst():CompleteProcedure()
end
if op==1 then
Duel.NegateSummon(g)
......
......@@ -42,6 +42,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4)
end
function cm.ctop(e,tp,eg,ep,ev,re,r,rp)
if bit.band(e:GetCode(),EVENT_SPSUMMON_SUCCESS)~=0 and not eg:IsExists(Card.IsSummonType,1,nil,SUMMON_TYPE_RITUAL) then return end
e:GetHandler():AddCounter(0xf3f,1)
end
function cm.atkval(e,c)
......
......@@ -34,12 +34,15 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0)
end
function cm.ckfilter2(c,tp)
return c:GetOwner()==tp
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.Destroy(sg,REASON_EFFECT)
local dg=Duel.GetOperatedGroup()
local s1=dg:Filter(Card.GetOwner,nil,tp):GetCount()
local s2=dg:Filter(Card.GetOwner,nil,1-tp):GetCount()
local s1=dg:Filter(cm.ckfilter2,nil,tp):GetCount()
local s2=dg:Filter(cm.ckfilter2,nil,1-tp):GetCount()
Duel.Damage(tp,s1*500,REASON_EFFECT)
Duel.Damage(1-tp,s2*500,REASON_EFFECT)
if Duel.GetLP(1-tp)<=4000 then
......@@ -59,7 +62,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetLabel()
return Duel.GetTurnCount()~=ct
end
function cm.desop2(e,tp,eg,ep,ev,re,r,rp)
function cm.desop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
local tc=g:GetFirst()
......
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