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

2022/2/22 修复海龙骑士的bug

parent 8f2eeced
......@@ -17,6 +17,13 @@ end
function cm.costfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.exfilter(c,tc)
if c:IsCode(120000000) then
return RushDuel.IsLegendCode(c,tc:GetOriginalCode())
else
return c:IsCode(tc:GetCode())
end
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_GRAVE,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......@@ -34,7 +41,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if tc then
Duel.HintSelection(g)
Duel.ConfirmCards(tp,g)
if Duel.IsExistingMatchingCard(RushDuel.IsLegendCode,tp,0,LOCATION_GRAVE,1,nil,tc:GetCode())
if Duel.IsExistingMatchingCard(RushDuel.IsLegendCode,tp,0,LOCATION_GRAVE,1,nil,tc)
and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.Destroy(tc,REASON_EFFECT)
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