Commit 297c284f authored by 未闻皂名's avatar 未闻皂名

2023/11/14 bug修复

parent 947c88cd
Pipeline #24045 passed with stages
in 7 minutes and 54 seconds
......@@ -20,9 +20,6 @@ end
function cm.filter(c)
return c:IsLevel(8) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DRAGON) and c:IsAbleToHand()
end
function cm.exfilter(c)
return c:IsCode(list[2])
end
function cm.thfilter(c)
return c:IsCode(list[3]) and c:IsAbleToHand()
end
......@@ -35,7 +32,8 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.filter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
if RD.SendToHandAndExists(g,1-tp,cm.exfilter,1,nil) then
local ex=g:GetFirst():IsCode(list[2])
if RD.SendToHandAndExists(g,1-tp) and ex then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(sg)
RD.SendToHandAndExists(sg,1-tp)
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