Commit fcec0c5a authored by mercury233's avatar mercury233 Committed by GitHub

fix 真紅眼の鉄騎士-ギア・フリード

parent f9e4bb7b
...@@ -44,11 +44,15 @@ function c85651167.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,11 +44,15 @@ function c85651167.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tg,REASON_EFFECT) Duel.Destroy(tg,REASON_EFFECT)
end end
end end
function c85651167.spcostfilter(c,tp)
return c:IsControler(tp) and c:IsAbleToGraveAsCost()
end
function c85651167.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c85651167.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEquipGroup():IsExists(Card.IsAbleToGraveAsCost,1,nil) end local g=e:GetHandler():GetEquipGroup()
if chk==0 then return g:IsExists(c85651167.spcostfilter,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=e:GetHandler():GetEquipGroup():FilterSelect(tp,Card.IsAbleToGraveAsCost,1,1,nil) local tg=g:FilterSelect(tp,c85651167.spcostfilter,1,1,nil,tp)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(tg,REASON_COST)
end end
function c85651167.spfilter(c,e,tp) function c85651167.spfilter(c,e,tp)
return c:IsSetCard(0x3b) and c:IsLevelBelow(7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x3b) and c:IsLevelBelow(7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
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