Commit 574f5221 authored by POLYMER's avatar POLYMER

fix

parent beeb6068
......@@ -41,6 +41,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
local tc=g:GetFirst()
if tc and Duel.SendtoHand(tc,nil,REASON_EFFECT)>0 and tc:IsLocation(LOCATION_HAND) then
Duel.ConfirmCards(1-tp,tc)
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_HAND,0,nil)
if #g==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......
......@@ -266,6 +266,7 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local hg=Duel.GetMatchingGroup(cm.filter11,tp,LOCATION_HAND,0,nil)
if c:IsLocation(LOCATION_HAND) and Duel.SelectEffectYesNo(tp,c,aux.Stringid(m,6)) then
Duel.Hint(HINT_CARD,0,m)
Duel.Destroy(c,REASON_EFFECT)
--Destroy
local e6=Effect.CreateEffect(c)
......@@ -308,6 +309,7 @@ function cm.operation3(e,tp,eg,ep,ev,re,r,rp)
if #hg>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=hg:Select(tp,1,1,nil)
Duel.Hint(HINT_CARD,0,m)
Duel.Destroy(dg,REASON_EFFECT)
--Destroy
local e6=Effect.CreateEffect(c)
......@@ -329,6 +331,7 @@ function cm.operation4(e,tp,eg,ep,ev,re,r,rp)
e:Reset()
local c=e:GetHandler()
if c:GetFlagEffect(m+1)>0 and c:GetFlagEffectLabel(m+1)==e:GetLabel() and Duel.SelectYesNo(tp,aux.Stringid(m,4)) then
Duel.Hint(HINT_CARD,0,m)
Duel.Destroy(c,REASON_EFFECT)
--Destroy
local e6=Effect.CreateEffect(c)
......@@ -355,6 +358,7 @@ function cm.operation5(e,tp,eg,ep,ev,re,r,rp)
if #hg>0 and Duel.SelectYesNo(tp,aux.Stringid(m,3)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=hg:Select(tp,1,1,nil)
Duel.Hint(HINT_CARD,0,m)
Duel.Destroy(dg,REASON_EFFECT)
end
if c:GetFlagEffect(m+1)>0 and c:GetFlagEffectLabel(m+1)==e:GetLabel() 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