Commit 18c8b89f authored by 聖園ミカ's avatar 聖園ミカ 🐟

reclean

parent bb4bfb17
...@@ -47,8 +47,9 @@ function cm.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,8 +47,9 @@ function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) 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 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() local tc=g:GetFirst()
Duel.SendtoGrave(tc,REASON_DISCARD+REASON_COST)
local ctype=0 local ctype=0
for i,type in ipairs({TYPE_MONSTER,TYPE_SPELL,TYPE_TRAP}) do for i,type in ipairs({TYPE_MONSTER,TYPE_SPELL,TYPE_TRAP}) do
if tc:GetOriginalType()&type~=0 then 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