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

2024/8/5 新增:食物附赠卡(711D),bug修复

parent 47927f94
Pipeline #28932 passed with stages
in 5 minutes and 57 seconds
No preview for this file type
......@@ -30,21 +30,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(HINTMSG_TODECK,cm.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,function(g)
local tc=g:GetFirst()
local min,max=aux.GetMaterialListCount(tc)
local sump=tc:GetControler()
local sumtype=tc:GetSummonType()
local mg=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.spfilter),sump,LOCATION_GRAVE,0,nil,e,sump,tc)
if RD.SendToDeckAndExists(tc) and sumtype&SUMMON_TYPE_FUSION==SUMMON_TYPE_FUSION
and not tc.unspecified_funsion
and min>0 and min==max and min<=Duel.GetLocationCount(sump,LOCATION_MZONE)
and mg:CheckSubGroup(cm.check,min,min,tc)
and not Duel.IsPlayerAffectedByEffect(sump,59822133)
and Duel.SelectYesNo(sump,aux.Stringid(m,1)) then
Duel.Hint(HINT_SELECTMSG,sump,HINTMSG_SPSUMMON)
local g=mg:SelectSubGroup(sump,cm.check,false,min,min,tc)
if g:GetCount()>0 then
Duel.BreakEffect()
Duel.SpecialSummon(g,0,sump,sump,false,false,POS_FACEUP)
end
local ex=tc:IsSummonType(SUMMON_TYPE_FUSION) and not tc.unspecified_funsion and min>0 and min==max
if RD.SendToDeckAndExists(tc) then
local sump=tc:GetControler()
local filter=RD.Filter(cm.spfilter,e,sump,tc)
local check=RD.Check(cm.check,tc)
RD.CanSelectGroupAndSpecialSummon(aux.Stringid(m,1),filter,check,sump,LOCATION_GRAVE,0,min,min,nil,e,POS_FACEUP)
end
end)
end
\ No newline at end of file
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
e1:SetCode(EFFECT_CHAIN_MATERIAL)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,1)
e1:SetTargetRange(1,0)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
e1:SetValue(cm.value)
......
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