Commit 36a91645 authored by 未闻皂名's avatar 未闻皂名

2022/9/23 bug修复

parent 93e271df
No preview for this file type
......@@ -29,6 +29,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.SendtoGrave(g1,REASON_EFFECT)==0 then return end
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),cm.filter,tp,0,LOCATION_MZONE,1,1,nil,function(g)
Duel.BreakEffect()
RD.AttachLevel(e,g:GetFirst(),-2,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
local lv=Duel.SelectOption(tp,aux.Stringid(m,3),aux.Stringid(m,4))+1
RD.AttachLevel(e,g:GetFirst(),-lv,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
end
\ No newline at end of file
......@@ -25,7 +25,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end
cm.cost=RD.CostSendMZoneToGrave(Card.IsAbleToGraveAsCost,1,1,false)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,m)~=0 and Duel.GetFlagEffect(1-tp,m)~=0 end
if chk==0 then return Duel.GetFlagEffect(tp,m)==0 and Duel.GetFlagEffect(1-tp,m)==0 end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c)
......
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