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

fix

parent 3faed187
...@@ -21,15 +21,14 @@ function c49154689.cfilter(c,e,tp) ...@@ -21,15 +21,14 @@ function c49154689.cfilter(c,e,tp)
and Duel.IsExistingMatchingCard(c49154689.spfilter,tp,0,LOCATION_GRAVE,1,nil,race,attr,e,tp) and Duel.IsExistingMatchingCard(c49154689.spfilter,tp,0,LOCATION_GRAVE,1,nil,race,attr,e,tp)
end end
function c49154689.spfilter(c,race,attr,e,tp) function c49154689.spfilter(c,race,attr,e,tp)
return c:IsRace(race) and c:IsAttribute(attr) return c:GetOriginalRace()==race and c:GetOriginalAttribute()==attr
and c:IsCanBeEffectTarget(e) and c:IsCanBeEffectTarget(e)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp)
end end
function c49154689.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c49154689.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100) e:SetLabel(100)
if chk==0 then return Duel.IsExistingMatchingCard(c49154689.cfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c49154689.cfilter,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) local sg=Duel.SelectReleaseGroup(tp,c49154689.cfilter,1,1,nil,e,tp)
local sg=Duel.SelectMatchingCard(tp,c49154689.cfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
e:SetLabelObject(sg:GetFirst()) e:SetLabelObject(sg:GetFirst())
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
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