Commit ae7aa6bf authored by salix5's avatar salix5

fix

parent 7589bd79
......@@ -14,8 +14,14 @@ function c37198732.cfilter(c)
return c:GetLevel()>0 and c:IsAbleToGraveAsCost()
end
function c37198732.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1)
if chk==0 then return Duel.IsExistingMatchingCard(c37198732.cfilter,tp,LOCATION_HAND,0,1,nil) end
if chk==0 then
if Duel.IsExistingMatchingCard(c37198732.cfilter,tp,LOCATION_HAND,0,1,nil) then
e:SetLabel(1)
return true
else
return false
end
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c37198732.cfilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
......
......@@ -19,7 +19,7 @@ function c52097679.filter(c,e)
return c:IsFaceup() and c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e)
end
function c52097679.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(c52097679.filter,tp,LOCATION_MZONE,0,nil,e)
local sg=Duel.GetMatchingGroup(c52097679.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e)
local c=e:GetHandler()
local tc=sg:GetFirst()
while tc do
......
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