Commit 2b69ee3e authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 00758b8b
Pipeline #30263 failed with stages
in 21 minutes and 46 seconds
......@@ -49,7 +49,7 @@ function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffect(1-tp,m+1)
Duel.RegisterFlagEffect(ep,m+1,RESET_PHASE+PHASE_END,0,1)
if Duel.GetFlagEffect(1-tp,m+1)==5 and Duel.GetFlagEffect(1-tp,m+1)>ct then
Duel.RaiseEvent(eg,EVENT_CUSTOM+m,re,r,rp,ep,ev)
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+m,e,0,0,0,0)
end
end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -123,8 +123,7 @@ function cm.gytg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=eg:Filter(cm.gyfilter,nil,tp)
local sg=Duel.GetMatchingGroup(aux.IsInGroup,tp,LOCATION_MZONE,LOCATION_MZONE,nil,g)
if chk==0 then return #sg>0 end
e:SetLabelObject(sg)
sg:KeepAlive()
Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,sg,sg:GetCount(),0,0)
Duel.SetChainLimit(cm.limit(sg))
end
......@@ -135,10 +134,9 @@ function cm.limit(g)
end
end
function cm.gyop(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if #sg>0 then
Duel.SendtoGrave(sg,REASON_EFFECT)
end
g:DeleteGroup()
end
\ No newline at end of file
......@@ -78,6 +78,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetCondition(cm.slcon)
e1:SetOperation(cm.slop)
Duel.RegisterEffect(e1,tp)
......
......@@ -78,6 +78,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetCondition(cm.slcon)
e1:SetOperation(cm.slop)
Duel.RegisterEffect(e1,tp)
......
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