Commit a62759eb authored by TanakaKotoha's avatar TanakaKotoha

fix

parent c30bf45e
......@@ -77,9 +77,9 @@ function cm.discfilter(c)
return c:IsType(TYPE_TRAP+TYPE_SPELL) and c:IsFaceup() and c:IsAbleToGraveAsCost()
end
function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.discfilter,tp,LOCATION_ONFIELD,0,1,nil) and cm.cost(e,tp,eg,ep,ev,re,r,rp,0) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.discfilter,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) and cm.cost(e,tp,eg,ep,ev,re,r,rp,0) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.discfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.discfilter,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
cm.cost(e,tp,eg,ep,ev,re,r,rp,1)
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