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

2025/3/27 bug修复

parent 6a59eb8d
Pipeline #34241 passed with stages
in 14 minutes and 41 seconds
......@@ -13,16 +13,17 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
--Set
function cm.costfilter(c)
return c:IsType(TYPE_RITUAL) and c:IsRace(RACE_WARRIOR+RACE_SPELLCASTER) and RD.IsDefenseAbove(c,2500)
function cm.costfilter(c,e,tp)
return c:IsType(TYPE_RITUAL) and c:IsRace(RACE_WARRIOR+RACE_SPELLCASTER)
and RD.IsDefenseAbove(c,2500) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_GRAVE,0,1,nil,c)
end
function cm.setfilter(c,tc)
return c:GetType()==TYPE_RITUAL+TYPE_SPELL and aux.IsCodeListed(c,tc:GetCode()) and c:IsSSetable()
end
cm.cost=RD.CostShowExtra(cm.costfilter,1,1,nil,Group.GetFirst)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsCostChecked() and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_GRAVE,0,1,nil,e:GetLabelObject()) end
if chk==0 then return e:IsCostChecked() end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,LOCATION_GRAVE)
end
function cm.operation(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