Commit 83bf58d1 authored by 未闻皂名's avatar 未闻皂名

2025/12/3 bug修复

parent f8841dd5
Pipeline #41821 passed with stages
in 7 minutes and 24 seconds
......@@ -14,10 +14,10 @@ end
--Cannot To Hand & Deck & Extra
function cm.filter1(c)
return c:IsFaceup() and c:IsRace(RACE_GALAXY) and c:IsLocation(LOCATION_MZONE)
and c:GetFlagEffect(m)==0
and c:GetFlagEffect(20297006)==0
end
function cm.filter2(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:GetFlagEffect(m)==0
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:GetFlagEffect(20297006)==0
end
function cm.filter(c)
return cm.filter1(c) or cm.filter2(c)
......@@ -37,7 +37,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_MZONE,0,1,nil) end
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectGroupAndDoAction(aux.Stringid(m,1),cm.filter,cm.check,tp,LOCATION_ONFIELD,0,1,1,nil,function(g)
RD.SelectGroupAndDoAction(aux.Stringid(m,1),cm.filter,cm.check,tp,LOCATION_ONFIELD,0,1,2,nil,function(g)
g:ForEach(function(tc)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(m,2))
......@@ -53,7 +53,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_CANNOT_TO_DECK_EFFECT)
tc:RegisterEffect(e2)
if not tc:IsImmuneToEffect(e) then
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN,0,1)
tc:RegisterFlagEffect(20297006,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN,0,1)
end
end)
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