Commit de59fbf2 authored by 未闻皂名's avatar 未闻皂名

2024/4/7 bug修复

parent 72292590
Pipeline #26279 passed with stages
in 7 minutes and 17 seconds
...@@ -35,7 +35,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetDecktopGroup(1-tp,2):Filter(Card.IsLevelAbove,nil,1) local g=Duel.GetDecktopGroup(1-tp,2):Filter(Card.IsLevelAbove,nil,1)
local lv=g:GetSum(Card.GetLevel) local lv=g:GetSum(Card.GetLevel)
if lv>0 then if lv>0 then
local filter=aux.NecroValleyFilter(RD.Filter(cm.spfilter,c,e,tp,lv)) local filter=aux.NecroValleyFilter(RD.Filter(cm.spfilter,e,tp,lv))
RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),filter,tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP) RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),filter,tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP)
end end
Duel.SortDecktop(1-tp,1-tp,2) Duel.SortDecktop(1-tp,1-tp,2)
......
...@@ -34,8 +34,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,8 +34,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
if Duel.SendtoGrave(g1,REASON_EFFECT)==0 then return end if Duel.SendtoGrave(g1,REASON_EFFECT)==0 then return end
local filter=aux.NecroValleyFilter(RD.Filter(cm.filter,g1)) local filter=aux.NecroValleyFilter(RD.Filter(cm.filter,g1))
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_TODECK,filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,function(g) RD.CanSelectAndDoAction(aux.Stringid(m,2),HINTMSG_TODECK,filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,function(g)
Duel.BreakEffect() Duel.BreakEffect()
RD.SendToDeckTopOrBottom(g,tp,aux.Stringid(m,2),aux.Stringid(m,3)) RD.SendToDeckTopOrBottom(g,tp,aux.Stringid(m,3),aux.Stringid(m,4))
end) end)
end end
\ No newline at end of file
...@@ -7,7 +7,7 @@ function cm.initial_effect(c) ...@@ -7,7 +7,7 @@ function cm.initial_effect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_GRAVE_ACTION) e1:SetCategory(CATEGORY_TODECK+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CUSTOM+m) e1:SetCode(EVENT_CUSTOM+m)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCondition(cm.condition) e1:SetCondition(cm.condition)
e1:SetTarget(cm.target) e1:SetTarget(cm.target)
e1:SetOperation(cm.activate) e1:SetOperation(cm.activate)
...@@ -36,7 +36,7 @@ function cm.check(g) ...@@ -36,7 +36,7 @@ function cm.check(g)
return g:IsExists(Card.IsLevelBelow,2,nil,4) return g:IsExists(Card.IsLevelBelow,2,nil,4)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local mg=Duel.GetMatchingGroup(cm.confilter1,tp,0,LOCATION_ONFIELD,nil) local mg=Duel.GetMatchingGroup(cm.confilter1,tp,LOCATION_GRAVE,0,nil)
return mg:GetClassCount(Card.GetCode)>2 and eg:IsExists(cm.confilter2,1,nil,1-tp) return mg:GetClassCount(Card.GetCode)>2 and eg:IsExists(cm.confilter2,1,nil,1-tp)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -45,11 +45,9 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -45,11 +45,9 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,5,1-tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,5,1-tp,LOCATION_GRAVE)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
aux.GCheckAdditional=cm.check RD.SelectGroupAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),cm.check,tp,0,LOCATION_GRAVE,5,5,nil,function(g)
RD.SelectGroupAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),aux.TRUE,tp,0,LOCATION_GRAVE,5,5,nil,function(g)
RD.SendToDeckTop(g,1-tp) RD.SendToDeckTop(g,1-tp)
end) end)
aux.GCheckAdditional=nil
end end
--Event --Event
function cm.event(e,tp,eg,ep,ev,re,r,rp) function cm.event(e,tp,eg,ep,ev,re,r,rp)
......
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