Commit 280bb9b1 authored by Nemo Ma's avatar Nemo Ma

fix

parent 4a6bb78a
...@@ -75,6 +75,9 @@ function c98920104.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,6 +75,9 @@ function c98920104.thop(e,tp,eg,ep,ev,re,r,rp)
e0:SetValue(tc:GetLevel()+1) e0:SetValue(tc:GetLevel()+1)
e0:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END) e0:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
c:RegisterEffect(e0) c:RegisterEffect(e0)
local e3=e0:Clone()
e3:SetCode(EFFECT_CHANGE_RSCALE)
c:RegisterEffect(e3)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
......
...@@ -20,7 +20,7 @@ function c98920501.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c98920501.discon(e,tp,eg,ep,ev,re,r,rp)
and e:GetHandler():GetFlagEffect(98920501)<=0 and e:GetHandler():GetFlagEffect(98920501)<=0
end end
function c98920501.disop(e,tp,eg,ep,ev,re,r,rp) function c98920501.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(98920501,2)) then if Duel.SelectYesNo(tp,aux.Stringid(98920501,2)) then
local g=Group.CreateGroup() local g=Group.CreateGroup()
Duel.ChangeTargetCard(ev,g) Duel.ChangeTargetCard(ev,g)
Duel.ChangeChainOperation(ev,c98920501.repop) Duel.ChangeChainOperation(ev,c98920501.repop)
...@@ -30,9 +30,24 @@ end ...@@ -30,9 +30,24 @@ end
function c98920501.repop(e,tp,eg,ep,ev,re,r,rp) function c98920501.repop(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)
if e:GetHandler():IsType(TYPE_PENDULUM) then
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c98920501.spfilter),tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK)
e1:SetValue(0)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
tc:RegisterEffect(e2)
end
Duel.SpecialSummonComplete()
else
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c98920501.spfilter),tp,0x13,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c98920501.spfilter),tp,0x13,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc then return end
if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -45,6 +60,7 @@ function c98920501.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,6 +60,7 @@ function c98920501.repop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end
end end
function c98920501.spfilter(c,e,tp) function c98920501.spfilter(c,e,tp)
return c:IsRace(RACE_DRAGON) and not c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_DRAGON) and not c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
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