Commit bf3bd7db authored by wind2009's avatar wind2009

Fix

parent 22b23b31
Pipeline #38555 passed with stages
in 5 minutes and 53 seconds
No preview for this file type
......@@ -12,6 +12,7 @@
101302017
101302020
101302021
101302030
101302033
101302034
101302204
......@@ -21,6 +22,7 @@
101302206
101302207
101302050
101302053
101302208
101302056
101302061
......
......@@ -69,4 +69,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(g)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -47,7 +47,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToChain() and c:IsLocation(LOCATION_HAND)then
if c:IsRelateToChain() and c:IsLocation(LOCATION_HAND) then
Duel.Summon(tp,c,true,nil)
end
end
......@@ -65,4 +65,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
end
......@@ -11,6 +11,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,id)
e1:SetCondition(s.spcon)
......@@ -30,7 +31,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
return Duel.IsMainPhase()
end
function s.costfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:GetOriginalLevel()>2 and Duel.GetMZoneCount(tp,c)>0
......@@ -38,12 +39,13 @@ function s.costfilter(c,e,tp)
end
function s.spfilter(c,e,tp,lv,race)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsLevelBelow(lv-1)
and c:IsRace(race)
and (c:GetOriginalRace()&race)~=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,s.costfilter,1,nil,e,tp) end
local g=Duel.SelectReleaseGroup(tp,s.costfilter,1,1,nil,e,tp)
local c=e:GetHandler()
if chk==0 then return Duel.CheckReleaseGroup(tp,s.costfilter,1,c,e,tp) end
local g=Duel.SelectReleaseGroup(tp,s.costfilter,1,1,c,e,tp)
e:SetLabel(g:GetFirst():GetOriginalLevel(),g:GetFirst():GetOriginalRace())
Duel.Release(g,REASON_COST)
end
......@@ -57,7 +59,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToChain() then
if tc:IsRelateToChain() and aux.NecroValleyFilter()(tc) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end
end
......@@ -78,4 +80,4 @@ end
function s.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT+REASON_REPLACE)
end
\ No newline at end of file
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