Commit e6014122 authored by POLYMER's avatar POLYMER

fix

parent 1c8cff03
......@@ -81,12 +81,12 @@ function cm.rfilter(c)
return c:GetFlagEffect(11451771)>0
end
function Group.ForEach(group,func,...)
if aux.GetValueType(group)=="Group" and group:GetCount()>0 then
local d_group=group:Clone()
for tc in aux.Next(d_group) do
func(tc,...)
end
end
if aux.GetValueType(group)=="Group" and group:GetCount()>0 then
local d_group=group:Clone()
for tc in aux.Next(d_group) do
func(tc,...)
end
end
end
function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local phase=Duel.GetCurrentPhase()
......@@ -196,7 +196,7 @@ function cm.desrepop(e,tp,eg,ep,ev,re,r,rp)
local tt=Duel.GetAttackTarget()
if tt then g:AddCard(tt) end
local tg=g:Filter(Card.IsAbleToHand,nil)
Duel.SendtoHand(tg,nil,REASON_EFFECT)
Duel.SendtoHand(tg,nil,REASON_EFFECT+REASON_REPLACE)
e:Reset()
end
function cm.thfilter(c,code)
......@@ -277,5 +277,5 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
if not g then return end
local sg=g:Filter(cm.filter6,nil)
g:DeleteGroup()
Duel.SendtoHand(sg,tp,REASON_EFFECT+REASON_REPLACE)
Duel.SendtoHand(sg,tp,REASON_EFFECT)
end
\ No newline at end of file
......@@ -92,7 +92,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local op=aux.SelectFromOptions(tp,{tc:IsAbleToHand(),1190},{ft>0 and tc:IsCanBeSpecialSummoned(e,0,tp,false,false),1152})
if op==0 then
if op==1 then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
elseif Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) 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