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