Commit cb05e2d3 authored by Nemo Ma's avatar Nemo Ma

fix

parent 340c7cf4
......@@ -8,7 +8,10 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp,c)
local op={}
local os={}
for i=2,4,1 do
if Duel.GetMatchingGroupCount(Card.IsType,tp,0,i*(i==2 and 1 or 4),nil,TYPE_SPELL+TYPE_TRAP)>0 then
if i==2 and Duel.GetFieldGroupCount(tp,0,i)>0 then
op[1]=aux.Stringid(m,1)
os[1]=i
elseif Duel.GetMatchingGroupCount(Card.IsType,tp,0,i*4,nil,TYPE_SPELL+TYPE_TRAP)>0 then
op[#op+1]=aux.Stringid(m,i-1)
os[#os+1]=i
end
......@@ -19,5 +22,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp,c)
Duel.BreakEffect()
os = Duel.GetMatchingGroup(Card.IsType,tp,0,op*(op==2 and 1 or 4),nil,TYPE_SPELL+TYPE_TRAP)
if op==2 then Duel.ConfirmCards(tp,Duel.GetFieldGroup(tp,0,LOCATION_HAND)) end
Duel.Remove(os,POS_FACEUP,REASON_EFFECT)
if #os>0 then Duel.Remove(os,POS_FACEUP,REASON_EFFECT) end
end
\ No newline at end of file
......@@ -17,10 +17,10 @@ end
function cm.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local n=Duel.GetFieldGroup(tp,32,0):Filter(Card.IsSetCard,nil,0x564):Filter(Card.IsFaceup,nil):Filter(Card.IsType,nil,1):GetClassCount(Card.GetCode)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
if chk==0 then return n>0 and Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,n,nil)
if n>0 then
if n>1 then
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,#g,0,0)
end
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