Commit 42e4e73f authored by 未闻皂名's avatar 未闻皂名

2024/3/30 bug修复

parent d4fdc1ca
Pipeline #26145 passed with stages
in 7 minutes and 16 seconds
......@@ -26,12 +26,12 @@ end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g1=Duel.GetMatchingGroup(cm.costfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(cm.costfilter2,tp,LOCATION_GRAVE,0,nil)
if chk==0 then return g1:GetCount()>0 or g2:GetCount()>4 end
if chk==0 then return g1:GetCount()>0 or g2:GetClassCount(Card.GetLevel)>4 end
local sg
if g1:GetCount()<1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
sg=g2:Select(tp,5,5,nil)
elseif g2:GetCount()<5 then
elseif g2:GetClassCount(Card.GetLevel)<5 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
sg=g1:Select(tp,1,1,nil)
else
......
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