Commit 4bcc5d39 authored by POLYMER's avatar POLYMER

fix

parent 98023fe4
...@@ -345,6 +345,9 @@ function c98941057.gcheck(g) ...@@ -345,6 +345,9 @@ function c98941057.gcheck(g)
return g:FilterCount(Card.IsCode,nil,98941057)==1 return g:FilterCount(Card.IsCode,nil,98941057)==1
and g:FilterCount(Card.IsLocation,nil,LOCATION_DECK)<=1 and g:FilterCount(Card.IsLocation,nil,LOCATION_DECK)<=1
end end
function c98941057.ppfilter(c)
return not c:IsForbidden()
end
function c98941057.acost(e,tp,eg,ep,ev,re,r,rp,chk) function c98941057.acost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local b1=Duel.CheckReleaseGroup(tp,c98941057.costfilter,1,nil) local b1=Duel.CheckReleaseGroup(tp,c98941057.costfilter,1,nil)
...@@ -359,16 +362,17 @@ function c98941057.acost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -359,16 +362,17 @@ function c98941057.acost(e,tp,eg,ep,ev,re,r,rp,chk)
if Duel.GetTurnPlayer()==e:GetHandlerPlayer() then sk=1 end if Duel.GetTurnPlayer()==e:GetHandlerPlayer() then sk=1 end
local tg=g:SelectSubGroup(tp,c98941057.gcheck,false,sk,2) local tg=g:SelectSubGroup(tp,c98941057.gcheck,false,sk,2)
Duel.ConfirmCards(1-tp,tg) Duel.ConfirmCards(1-tp,tg)
local cou=Duel.GetFieldGroupCount(tp,LOCATION_PZONE,0)
if not c:IsCode(78949372) and (not b1 or Duel.SelectYesNo(tp,aux.Stringid(98941057,1))) then if not c:IsCode(78949372) and (not b1 or Duel.SelectYesNo(tp,aux.Stringid(98941057,1))) then
sc=tg:GetFirst() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
while sc do local sg=tg:FilterSelect(tp,c98941057.ppfilter,0,2-cou,nil)
if (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) and Duel.SelectYesNo(tp,aux.Stringid(98941057,3)) then local tc=sg:GetFirst()
Duel.MoveToField(sc,tp,tp,LOCATION_PZONE,POS_FACEUP,true) while tc do
else Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
Duel.SendtoExtraP(sc,nil,REASON_EFFECT) tc=sg:GetNext()
end
sc=tg:GetNext()
end end
tg:Sub(sg)
Duel.SendtoExtraP(tg,nil,REASON_EFFECT)
if c:IsCode(51250293) then if c:IsCode(51250293) then
e:SetLabel(LOCATION_DECK) e:SetLabel(LOCATION_DECK)
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