Commit 73683e5d authored by Huangnan's avatar Huangnan

fix

parent 6c304af0
Pipeline #39402 failed with stages
in 3 minutes and 37 seconds
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function cm.tfilter(c,e,tp) function cm.tfilter(c,e,tp)
if not c.srre_back_side then return false end if not c.srre_back_side then return false end
local tcim={Duel.ReadCard(c.srre_back_side,CARDDATA_CODE,CARDDATA_SETCODE,CARDDATA_TYPE,CARDDATA_ATTACK,CARDDATA_DEFENSE,CARDDATA_LEVEL,CARDDATA_RACE,CARDDATA_ATTRIBUTE)} local tcim={Duel.ReadCard(c.srre_back_side,CARDDATA_CODE,CARDDATA_SETCODE,CARDDATA_TYPE,CARDDATA_ATTACK,CARDDATA_DEFENSE,CARDDATA_LEVEL,CARDDATA_RACE,CARDDATA_ATTRIBUTE)}
return srre.check_set_seHakaShiroJyou(c) and not c:IsPublic() and Duel.IsPlayerCanSpecialSummonMonster(tp,table.unpack(tcim)) return (c.named_with_SeHakaShiroJyou == true) and not c:IsPublic() and Duel.IsPlayerCanSpecialSummonMonster(tp,table.unpack(tcim))
end end
function cm.tgfilter(c) function cm.tgfilter(c)
return c:IsAbleToGrave() and c:IsSetCard(0xafa9) return c:IsAbleToGrave() and c:IsSetCard(0xafa9)
...@@ -79,7 +79,7 @@ function cm.atop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function cm.atop(e,tp,eg,ep,ev,re,r,rp)
local tcode=tc.srre_back_side local tcode=tc.srre_back_side
tc:SetEntityCode(tcode,true) tc:SetEntityCode(tcode,true)
tc:ReplaceEffect(tcode,0,0) tc:ReplaceEffect(tcode,0,0)
Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)
end end
end end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp) function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -50,7 +50,6 @@ function s.initial_effect(c) ...@@ -50,7 +50,6 @@ function s.initial_effect(c)
c:RegisterEffect(e8) c:RegisterEffect(e8)
--spsummon --spsummon
local e9=Effect.CreateEffect(c) local e9=Effect.CreateEffect(c)
e9:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e9:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e9:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e9:SetRange(LOCATION_MZONE) e9:SetRange(LOCATION_MZONE)
e9:SetCode(EVENT_PHASE+PHASE_END) e9:SetCode(EVENT_PHASE+PHASE_END)
......
...@@ -46,10 +46,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,10 +46,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,s.mfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,mg) local g=Duel.SelectMatchingCard(tp,s.mfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,mg)
e:SetValue(g:GetFirst():GetRace()) local race=g:GetFirst():GetRace()
e:SetValue(race)
Duel.SetChainLimit(s.chainlm(race))
Duel.SendtoDeck(g,nil,1,REASON_COST) Duel.SendtoDeck(g,nil,1,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0)
end end
function s.chainlm(e,rp,tp,race)
return not e:GetHandler():IsRace(race)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp) function s.operation(e,tp,eg,ep,ev,re,r,rp)
local race = e:GetValue() local race = e:GetValue()
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,race):GetFirst() local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,race):GetFirst()
......
...@@ -41,7 +41,6 @@ function c16310055.initial_effect(c) ...@@ -41,7 +41,6 @@ function c16310055.initial_effect(c)
e3:SetCode(EVENT_CHAINING) e3:SetCode(EVENT_CHAINING)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,16310055)
e3:SetCondition(c16310055.negcon) e3:SetCondition(c16310055.negcon)
e3:SetCost(c16310055.negcost) e3:SetCost(c16310055.negcost)
e3:SetTarget(aux.nbtg) e3:SetTarget(aux.nbtg)
...@@ -55,7 +54,7 @@ function c16310055.initial_effect(c) ...@@ -55,7 +54,7 @@ function c16310055.initial_effect(c)
e4:SetCode(EVENT_FREE_CHAIN) e4:SetCode(EVENT_FREE_CHAIN)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetHintTiming(0,TIMING_BATTLE_END) e4:SetHintTiming(0,TIMING_BATTLE_END)
e4:SetCountLimit(1,16310055+1) e4:SetCountLimit(1,16310055)
e4:SetCondition(c16310055.spcon) e4:SetCondition(c16310055.spcon)
e4:SetTarget(c16310055.sptg) e4:SetTarget(c16310055.sptg)
e4:SetOperation(c16310055.spop) e4:SetOperation(c16310055.spop)
......
...@@ -34,6 +34,7 @@ function c16400295.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,6 +34,7 @@ function c16400295.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c16400295.operation(e,tp,eg,ep,ev,re,r,rp) function c16400295.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end if ft<=0 then return end
if ft>2 then ft=2 end if ft>2 then ft=2 end
......
...@@ -63,6 +63,7 @@ function c16400305.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,6 +63,7 @@ function c16400305.spop(e,tp,eg,ep,ev,re,r,rp)
if dg:GetCount()>0 and Duel.Destroy(dg,REASON_EFFECT)>0 then if dg:GetCount()>0 and Duel.Destroy(dg,REASON_EFFECT)>0 then
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end if ft<=0 then return end
if ft>3 then ft=3 end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c16400305.spfilter),tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,ft,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c16400305.spfilter),tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,ft,nil,e,tp)
......
...@@ -73,7 +73,7 @@ function s.initial_effect(c) ...@@ -73,7 +73,7 @@ function s.initial_effect(c)
e8:SetCondition(s.con4) e8:SetCondition(s.con4)
e8:SetValue(s.efilter) e8:SetValue(s.efilter)
c:RegisterEffect(e8) c:RegisterEffect(e8)
--immune spell --immune monster
local e9=Effect.CreateEffect(c) local e9=Effect.CreateEffect(c)
e9:SetType(EFFECT_TYPE_SINGLE) e9:SetType(EFFECT_TYPE_SINGLE)
e9:SetCode(EFFECT_IMMUNE_EFFECT) e9:SetCode(EFFECT_IMMUNE_EFFECT)
...@@ -137,7 +137,7 @@ function s.con5(e) ...@@ -137,7 +137,7 @@ function s.con5(e)
return Duel.GetFlagEffect(0,id)>6 return Duel.GetFlagEffect(0,id)>6
end end
function s.efilter2(e,te) function s.efilter2(e,te)
return te:IsActiveType(TYPE_MONSTER) and not te:GetHandler()==e:GetHandler() return te:IsActiveType(TYPE_MONSTER) and te:GetHandler()~=e:GetHandler()
end end
function s.descon(e,tp,eg,ep,ev,re,r,rp) function s.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -8,6 +8,7 @@ function cm.initial_effect(c) ...@@ -8,6 +8,7 @@ function cm.initial_effect(c)
SNNM.AllEffectReset(c) SNNM.AllEffectReset(c)
SNNM.AozoraDisZoneGet(c) SNNM.AozoraDisZoneGet(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_TODECK) e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
...@@ -18,7 +19,7 @@ function cm.initial_effect(c) ...@@ -18,7 +19,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_ACTIVATE) e2:SetType(EFFECT_TYPE_ACTIVATE)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
......
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