Commit 0b16f57a authored by POLYMER's avatar POLYMER

fix

parent ef964df7
--方舟骑士-凯尔希 --方舟骑士-凯尔希
function c29056009.initial_effect(c) function c29056009.initial_effect(c)
aux.AddCodeList(c,29065500,29065502,29065578) aux.AddCodeList(c,29065500,29065502,29065578)
--summon with no tribute
local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(51126152,0))
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_SUMMON_PROC)
e0:SetCondition(c29056009.ntcon)
--c:RegisterEffect(e0)
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(39392286,0)) e1:SetDescription(aux.Stringid(39392286,0))
...@@ -54,7 +46,7 @@ function c29056009.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +46,7 @@ function c29056009.spcon2(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetAttacker()==c or Duel.GetAttackTarget()==c) return (Duel.GetAttacker()==c or Duel.GetAttackTarget()==c)
end end
function c29056009.spfilter(c,e,tp) function c29056009.spfilter(c,e,tp)
return c:IsFaceupEx() and c:IsCode(29065578) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(29065578) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c29056009.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c29056009.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c29056009.spfilter,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c29056009.spfilter,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,e,tp) end
......
...@@ -110,7 +110,7 @@ function c29059050.eqfilter(c,tp) ...@@ -110,7 +110,7 @@ function c29059050.eqfilter(c,tp)
end end
function c29059050.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c29059050.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.IsExistingTarget(aux.NecroValleyFilter(c29059050.eqfilter),tp,LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil,c,tp) if chk==0 then return Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c29059050.eqfilter),tp,LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil)
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,nil,1,tp,LOCATION_GRAVE+LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_EQUIP,nil,1,tp,LOCATION_GRAVE+LOCATION_EXTRA)
end end
......
...@@ -143,7 +143,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -143,7 +143,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD) e5:SetType(EFFECT_TYPE_FIELD)
e5:SetTargetRange(0,LOCATION_ONFIELD) e5:SetTargetRange(0,LOCATION_MZONE)
e5:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e5:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e5:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL) e5:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e5:SetReset(RESET_PHASE+PHASE_END) e5:SetReset(RESET_PHASE+PHASE_END)
...@@ -160,6 +160,12 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -160,6 +160,12 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local e8=e5:Clone() local e8=e5:Clone()
e8:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL) e8:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
Duel.RegisterEffect(e8,tp) Duel.RegisterEffect(e8,tp)
local e9=e5:Clone()
e9:SetCode(EFFECT_UNRELEASABLE_SUM)
Duel.RegisterEffect(e9,tp)
local e10=e5:Clone()
e10:SetCode(EFFECT_UNRELEASABLE_NONSUM)
Duel.RegisterEffect(e10,tp)
--client --client
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
...@@ -170,7 +176,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -170,7 +176,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e3,1-tp) Duel.RegisterEffect(e3,1-tp)
end end
function cm.lockcon(e) function cm.lockcon(e)
return Duel.GetCurrentPhase()~=PHASE_MAIN1 return Duel.GetCurrentPhase()==PHASE_MAIN1
end end
function cm.fuslimit(e,c,sumtype) function cm.fuslimit(e,c,sumtype)
return sumtype==SUMMON_TYPE_FUSION return sumtype==SUMMON_TYPE_FUSION
......
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