Commit 18c8b89f authored by Tachibana's avatar Tachibana 🐟

reclean

parent bb4bfb17
Pipeline #26005 passed with stages
in 19 minutes and 58 seconds
......@@ -47,8 +47,9 @@ function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
end
function cm.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
local g=Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
local g=Duel.SelectMatchingCard(tp,Card.IsDiscardable,tp,LOCATION_HAND,0,1,1,nil)
local tc=g:GetFirst()
Duel.SendtoGrave(tc,REASON_DISCARD+REASON_COST)
local ctype=0
for i,type in ipairs({TYPE_MONSTER,TYPE_SPELL,TYPE_TRAP}) do
if tc:GetOriginalType()&type~=0 then
......
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