Commit 714077c1 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12032012.lua

parent 546c8a5b
...@@ -66,7 +66,7 @@ function cm.filter(c,level) ...@@ -66,7 +66,7 @@ function cm.filter(c,level)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xfa1) and c:GetLevel()==level and c:IsAbleToGrave() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xfa1) and c:GetLevel()==level and c:IsAbleToGrave()
end end
function cm.tgfilter(c) function cm.tgfilter(c)
return c:IsSetCard(0xfa1) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsPlayerCanDiscardDeck(tp,1) and Duel.GetFlagEffect(tp,m)>0 end if chk==0 then return Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsPlayerCanDiscardDeck(tp,1) and Duel.GetFlagEffect(tp,m)>0 end
...@@ -99,4 +99,4 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -99,4 +99,4 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,spcard) Duel.ConfirmCards(1-tp,spcard)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
else Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT+REASON_REVEAL) end else Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT+REASON_REVEAL) end
end end
\ No newline at end of file
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