Commit 565e0767 authored by mercury233's avatar mercury233

fix

parent 9866ca1c
...@@ -45,23 +45,25 @@ function c8967776.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,23 +45,25 @@ function c8967776.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c8967776.filter),tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c8967776.filter),tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,e,tp)
local c=e:GetHandler()
local tc=g:GetFirst() local tc=g:GetFirst()
local e1=Effect.CreateEffect(c) if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
e1:SetType(EFFECT_TYPE_SINGLE) local c=e:GetHandler()
e1:SetCode(EFFECT_DISABLE) local e1=Effect.CreateEffect(c)
e1:SetReset(RESET_EVENT+0xfe0000) e1:SetType(EFFECT_TYPE_SINGLE)
tc:RegisterEffect(e1) e1:SetCode(EFFECT_DISABLE)
local e2=Effect.CreateEffect(c) e1:SetReset(RESET_EVENT+0xfe0000)
e2:SetType(EFFECT_TYPE_SINGLE) tc:RegisterEffect(e1)
e2:SetCode(EFFECT_DISABLE_EFFECT) local e2=Effect.CreateEffect(c)
e2:SetReset(RESET_EVENT+0xfe0000) e2:SetType(EFFECT_TYPE_SINGLE)
tc:RegisterEffect(e2) e2:SetCode(EFFECT_DISABLE_EFFECT)
local e3=Effect.CreateEffect(c) e2:SetReset(RESET_EVENT+0xfe0000)
e3:SetType(EFFECT_TYPE_SINGLE) tc:RegisterEffect(e2)
e3:SetCode(EFFECT_SET_ATTACK) local e3=Effect.CreateEffect(c)
e3:SetValue(4000) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetReset(RESET_EVENT+0xfe0000) e3:SetCode(EFFECT_SET_ATTACK)
tc:RegisterEffect(e3) e3:SetValue(4000)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) e3:SetReset(RESET_EVENT+0xfe0000)
tc:RegisterEffect(e3)
Duel.SpecialSummonComplete()
end
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