Commit bbe3943e authored by wind2009's avatar wind2009

Merge branch 'patch-1' into 'master'

fix--刻まれし魔の憐歌

See merge request mycard/pre-release-database-cdb!120
parents 38d1938d ebdd8c9c
...@@ -6,6 +6,7 @@ function s.initial_effect(c) ...@@ -6,6 +6,7 @@ function s.initial_effect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(aux.bpcon)
e1:SetTarget(s.target) e1:SetTarget(s.target)
e1:SetOperation(s.activate) e1:SetOperation(s.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -63,10 +64,7 @@ end ...@@ -63,10 +64,7 @@ end
function s.filter2(c,e) function s.filter2(c,e)
return not c:IsImmuneToEffect(e) return not c:IsImmuneToEffect(e)
end end
function s.fcheck(tp,sg,fc) function s.fstg(e,tp,eg,ep,ev,re,r,rp,chk)
return sg:IsExists(Card.IsRace,nil,1,RACE_SPELLCASTER)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local me=Effect.CreateEffect(e:GetHandler()) local me=Effect.CreateEffect(e:GetHandler())
me:SetType(EFFECT_TYPE_FIELD) me:SetType(EFFECT_TYPE_FIELD)
...@@ -77,7 +75,6 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -77,7 +75,6 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(me,tp) Duel.RegisterEffect(me,tp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil) local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil)
aux.FCheckAdditional=s.fcheck
local res=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -88,13 +85,12 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -88,13 +85,12 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
res=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg3,mf,chkf) res=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg3,mf,chkf)
end end
end end
aux.FCheckAdditional=nil
me:Reset() me:Reset()
return res return res
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.fsop(e,tp,eg,ep,ev,re,r,rp)
local me=Effect.CreateEffect(e:GetHandler()) local me=Effect.CreateEffect(e:GetHandler())
me:SetType(EFFECT_TYPE_FIELD) me:SetType(EFFECT_TYPE_FIELD)
me:SetCode(EFFECT_EXTRA_FUSION_MATERIAL) me:SetCode(EFFECT_EXTRA_FUSION_MATERIAL)
...@@ -104,7 +100,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,7 +100,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(me,tp) Duel.RegisterEffect(me,tp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil):Filter(s.filter2,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil):Filter(s.filter2,nil,e)
aux.FCheckAdditional=s.fcheck
local sg1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg3=nil local mg3=nil
local sg2=nil local sg2=nil
...@@ -134,6 +129,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -134,6 +129,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
end end
aux.FCheckAdditional=nil
me:Reset() me:Reset()
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