Commit d611a471 authored by VanillaSalt's avatar VanillaSalt

fix

parent 777bdeaa
...@@ -80,12 +80,7 @@ function c84869738.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,12 +80,7 @@ function c84869738.activate(e,tp,eg,ep,ev,re,r,rp)
ft=ft-1 ft=ft-1
ct=ct-1 ct=ct-1
until ct==0 or sg:GetCount()==0 or ft==0 or not Duel.SelectYesNo(tp,aux.Stringid(84869738,0)) until ct==0 or sg:GetCount()==0 or ft==0 or not Duel.SelectYesNo(tp,aux.Stringid(84869738,0))
local tc=rg:GetFirst() Duel.SpecialSummon(rg,0,tp,tp,true,false,POS_FACEUP)
while tc do
Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP)
tc=rg:GetNext()
end
Duel.SpecialSummonComplete()
end end
function c84869738.xyzfilter(c) function c84869738.xyzfilter(c)
return c:IsFaceup() and c:IsSetCard(0x20f8) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x20f8) and c:IsType(TYPE_XYZ)
......
...@@ -18,15 +18,15 @@ function c98905.initial_effect(c) ...@@ -18,15 +18,15 @@ function c98905.initial_effect(c)
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
end end
end end
function c98905.cfilter(c,tp) function c98905.cfilter(c)
local tp=c:GetPreviousControler()
return c:IsSetCard(0xe5) and c:IsType(TYPE_XYZ) and c:IsControler(tp) and c:GetOverlayCount()>0 return c:IsSetCard(0xe5) and c:IsType(TYPE_XYZ) and c:IsControler(tp) and c:GetOverlayCount()>0
end end
function c98905.checkop(e,tp,eg,ep,ev,re,r,rp) function c98905.checkop(e,tp,eg,ep,ev,re,r,rp)
if not eg then return end local sg=eg:Filter(c98905.cfilter,nil)
local sg=eg:Filter(c98905.cfilter,nil,tp)
local tc=sg:GetFirst() local tc=sg:GetFirst()
while tc do while tc do
tc:RegisterFlagEffect(98905,RESET_EVENT+0x1fe0000-RESET_TOGRAVE,0,1) tc:RegisterFlagEffect(98905,RESET_EVENT+0x1fe0000,0,1)
tc=sg:GetNext() tc=sg:GetNext()
end end
end end
...@@ -42,7 +42,8 @@ end ...@@ -42,7 +42,8 @@ end
function c98905.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c98905.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return eg:IsContains(chkc) and c98905.filter(chkc,e,tp) end if chkc then return eg:IsContains(chkc) and c98905.filter(chkc,e,tp) end
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCountFromEx(tp)>0
and eg:IsExists(c98905.filter,1,nil,e,tp) end and eg:IsExists(c98905.filter,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=eg:FilterSelect(tp,c98905.filter,1,1,nil,e,tp) local g=eg:FilterSelect(tp,c98905.filter,1,1,nil,e,tp)
...@@ -51,7 +52,7 @@ function c98905.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -51,7 +52,7 @@ function c98905.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c98905.activate(e,tp,eg,ep,ev,re,r,rp) function c98905.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or Duel.GetLocationCountFromEx(tp)<=0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
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