Commit 55105b1d authored by 未闻皂名's avatar 未闻皂名
parents 09e2503a 297c284f
Pipeline #24048 passed with stages
in 8 minutes and 19 seconds
...@@ -20,9 +20,6 @@ end ...@@ -20,9 +20,6 @@ end
function cm.filter(c) function cm.filter(c)
return c:IsLevel(8) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DRAGON) and c:IsAbleToHand() return c:IsLevel(8) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DRAGON) and c:IsAbleToHand()
end end
function cm.exfilter(c)
return c:IsCode(list[2])
end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsCode(list[3]) and c:IsAbleToHand() return c:IsCode(list[3]) and c:IsAbleToHand()
end end
...@@ -35,7 +32,8 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,7 +32,8 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) 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) 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.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) RD.SendToHandAndExists(sg,1-tp)
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