Commit 57731330 authored by wind2009's avatar wind2009

Fix 凍てし心が映す神影

parent 04bfffd2
Pipeline #41723 failed with stages
in 62 minutes and 26 seconds
No preview for this file type
...@@ -17,4 +17,5 @@ ...@@ -17,4 +17,5 @@
100250062 100250062
100250063 100250063
100250064 100250064
100250065
100250066 100250066
\ No newline at end of file
...@@ -3,4 +3,5 @@ ...@@ -3,4 +3,5 @@
100252001 100252001
100200281 100200281
100254201 100254201
100254202 100254202
\ No newline at end of file 100228003
\ No newline at end of file
...@@ -73,4 +73,4 @@ end ...@@ -73,4 +73,4 @@ end
function s.atkcon(e) function s.atkcon(e)
local c=e:GetHandler() local c=e:GetHandler()
return Duel.IsExistingMatchingCard(s.atkfilter,c:GetControler(),LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(s.atkfilter,c:GetControler(),LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil)
end end
\ No newline at end of file
...@@ -3,6 +3,7 @@ local s,id,o=GetID() ...@@ -3,6 +3,7 @@ local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_TOGRAVE) e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
...@@ -10,9 +11,10 @@ function s.initial_effect(c) ...@@ -10,9 +11,10 @@ function s.initial_effect(c)
e1:SetCost(s.cost) e1:SetCost(s.cost)
e1:SetTarget(s.target) e1:SetTarget(s.target)
e1:SetOperation(s.activate) e1:SetOperation(s.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--fusion summon --fusion summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
...@@ -25,7 +27,7 @@ function s.initial_effect(c) ...@@ -25,7 +27,7 @@ function s.initial_effect(c)
Duel.AddCustomActivityCounter(id,ACTIVITY_SPSUMMON,s.counterfilter) Duel.AddCustomActivityCounter(id,ACTIVITY_SPSUMMON,s.counterfilter)
end end
function s.counterfilter(c) function s.counterfilter(c)
return not c:IsSummonLocation(LOCATION_EXTRA) or c:IsSetCard(0x9d) return not c:IsSummonLocation(LOCATION_EXTRA) or c:IsSetCard(0x9d) and c:IsFaceup()
end end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(id,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(id,tp,ACTIVITY_SPSUMMON)==0 end
...@@ -64,14 +66,15 @@ function s.fusfilter1(c,e,tp) ...@@ -64,14 +66,15 @@ function s.fusfilter1(c,e,tp)
return c:IsType(TYPE_FUSION) and Duel.IsExistingMatchingCard(s.fusfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c:GetAttribute(),c) return c:IsType(TYPE_FUSION) and Duel.IsExistingMatchingCard(s.fusfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c:GetAttribute(),c)
end end
function s.fusfilter2(c,e,tp,att,mc) function s.fusfilter2(c,e,tp,att,mc)
return c:IsSetCard(0x9d) and not c:IsAttribute(att) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial() return c:IsSetCard(0x9d) and not c:IsAttribute(att) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
and c:CheckFusionMaterial()
and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end end
function s.fustg(e,tp,eg,ep,ev,re,r,rp,chk) function s.fustg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if e:GetLabel()~=100 then return false end if not e:IsCostChecked() then return false end
e:SetLabel(0) return aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_FMATERIAL) and Duel.CheckReleaseGroup(tp,s.fusfilter1,1,nil,e,tp)
return aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_FMATERIAL) and Duel.CheckReleaseGroup(tp,s.fusfilter1,1,nil,e,tp) and s.cost(e,tp,eg,ep,ev,re,r,rp,0) and s.cost(e,tp,eg,ep,ev,re,r,rp,0)
end end
local rg=Duel.SelectReleaseGroup(tp,s.fusfilter1,1,1,nil,e,tp) local rg=Duel.SelectReleaseGroup(tp,s.fusfilter1,1,1,nil,e,tp)
e:SetLabel(rg:GetFirst():GetAttribute()) e:SetLabel(rg:GetFirst():GetAttribute())
...@@ -97,4 +100,4 @@ function s.fusop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,4 +100,4 @@ function s.fusop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
\ No newline at end of file
...@@ -77,4 +77,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,4 +77,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
\ No newline at end of file
...@@ -128,4 +128,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -128,4 +128,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
\ No newline at end of file
...@@ -61,4 +61,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,4 +61,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
if tc then if tc then
Duel.SSet(tp,tc) Duel.SSet(tp,tc)
end end
end end
\ No newline at end of file
...@@ -102,4 +102,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,4 +102,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToChain() and tc:IsOnField() then if tc:IsRelateToChain() and tc:IsOnField() then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -74,4 +74,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,4 +74,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE)
end end
end end
end end
\ No newline at end of file
...@@ -110,4 +110,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -110,4 +110,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(-lv) e1:SetValue(-lv)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
\ No newline at end of file
...@@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function s.splimit(e,c) function s.splimit(e,c)
return not c:IsType(TYPE_SYNCHRO) and c:IsLocation(LOCATION_EXTRA) return not c:IsType(TYPE_SYNCHRO) and c:IsLocation(LOCATION_EXTRA)
end end
\ No newline at end of file
...@@ -68,4 +68,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,4 +68,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
end end
\ No newline at end of file
...@@ -91,4 +91,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,4 +91,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp)
if tc then if tc then
Duel.Summon(tp,tc,true,nil) Duel.Summon(tp,tc,true,nil)
end end
end end
\ No newline at end of file
...@@ -87,4 +87,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,4 +87,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.etarget(e,c) function s.etarget(e,c)
return c:IsFaceup() and c:IsSetCard(0x54) return c:IsFaceup() and c:IsSetCard(0x54)
end end
\ No newline at end of file
...@@ -70,4 +70,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,4 +70,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChainAttack() Duel.ChainAttack()
end end
end end
end end
\ No newline at end of file
...@@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
\ No newline at end of file
...@@ -139,4 +139,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -139,4 +139,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
\ No newline at end of file
...@@ -156,4 +156,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -156,4 +156,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
end end
end end
\ No newline at end of file
...@@ -92,4 +92,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,4 +92,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.eqlimit(e,c) function s.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
\ No newline at end of file
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