Commit 67f03c82 authored by 未闻皂名's avatar 未闻皂名

2023/8/17 更新调整

parent bba4d54a
Pipeline #23172 passed with stages
in 6 minutes and 47 seconds
No preview for this file type
No preview for this file type
...@@ -20,20 +20,21 @@ end ...@@ -20,20 +20,21 @@ end
function cm.confilter(c,tp) function cm.confilter(c,tp)
return c:GetSummonPlayer()==tp and c:IsFaceup() and c:IsType(TYPE_EFFECT) return c:GetSummonPlayer()==tp and c:IsFaceup() and c:IsType(TYPE_EFFECT)
end end
function cm.spfilter(c,e,tp,tc) function cm.spfilter(c,e,tp,atk)
return c:IsAttackBelow(tc:GetAttack()) and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP_ATTACK) return c:IsAttackBelow(atk) and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP_ATTACK)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:GetCount()==1 and eg:IsExists(cm.confilter,1,nil,1-tp) return eg:IsExists(cm.confilter,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)
local _,atk=eg:GetMaxGroup(Card.GetAttack)
if chk==0 then return Duel.GetMZoneCount(tp)>0 if chk==0 then return Duel.GetMZoneCount(tp)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,eg:GetFirst()) end and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,atk) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,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)
local tc=eg:GetFirst() local _,atk=eg:GetMaxGroup(Card.GetAttack)
local spfilter=aux.NecroValleyFilter(RD.Filter(cm.spfilter,e,tp,tc)) local spfilter=aux.NecroValleyFilter(RD.Filter(cm.spfilter,e,tp,atk))
if RD.SelectAndSpecialSummon(spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP_ATTACK)~=0 then if RD.SelectAndSpecialSummon(spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP_ATTACK)~=0 then
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),Card.IsFaceup,tp,0,LOCATION_MZONE,1,2,nil,function(g) RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),Card.IsFaceup,tp,0,LOCATION_MZONE,1,2,nil,function(g)
Duel.BreakEffect() Duel.BreakEffect()
......
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