Commit 04c07f4f authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12029012.lua

parent 45e3a2e8
......@@ -42,7 +42,7 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,e:GetHandler())
if Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,e:GetHandler()) and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,5,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) and g:GetCount()>0 then
if Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,e:GetHandler()) and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,5,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) and g:GetCount()>0 then
Duel.DiscardHand(tp,Card.IsDiscardable,5,5,REASON_COST+REASON_DISCARD)
Duel.Destroy(g,REASON_EFFECT)
end
......@@ -70,4 +70,4 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
c:CopyEffect(code,RESET_EVENT+0x1fe0000,1)
c:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,3))
end
end
\ No newline at end of file
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