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

2023/5/6 bug修复

parent b7f1258b
...@@ -21,11 +21,13 @@ function cm.adfilter(c,attr) ...@@ -21,11 +21,13 @@ function cm.adfilter(c,attr)
return c:IsFaceup() and c:IsAttribute(attr) return c:IsFaceup() and c:IsAttribute(attr)
end end
cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1,function(g) cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1,function(g)
return g:GetFirst():GetLevel() local tc=g:GetFirst()
return tc:GetLevel(),tc:GetAttribute()
end) end)
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local down=e:GetLabel()*-300 local lv,attr=e:GetLabel()
local g=Duel.GetMatchingGroup(cm.adfilter,tp,0,LOCATION_MZONE,nil,cc:GetAttribute()) local down=lv*-300
local g=Duel.GetMatchingGroup(cm.adfilter,tp,0,LOCATION_MZONE,nil,attr)
g:ForEach(function(tc) g:ForEach(function(tc)
RD.AttachAtkDef(e,tc,down,down,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) RD.AttachAtkDef(e,tc,down,down,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
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