Commit 7e39dcb9 authored by 未闻皂名's avatar 未闻皂名

2025/8/30 bug修复

parent 6cb4d566
Pipeline #40382 passed with stages
in 9 minutes and 36 seconds
......@@ -13,6 +13,7 @@ function cm.initial_effect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
......@@ -27,6 +28,9 @@ function cm.blast(c)
local ct=c:GetMaterialCount()
return c:GetFlagEffect(20293043)~=0 and ct>=9
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSpecialSummonTurn(e:GetHandler())
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if cm.blast(c) then
......
......@@ -34,7 +34,7 @@ function cm.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,20293047)==0
return Duel.GetFlagEffect(tp,20293047)==1
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.desfilter,tp,0,LOCATION_ONFIELD,1,nil) end
......
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