Commit 55e3fbbc authored by POLYMER's avatar POLYMER

fix

parent 1ee8d23d
...@@ -24,7 +24,7 @@ function c10105676.initial_effect(c) ...@@ -24,7 +24,7 @@ function c10105676.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_GRAVE) e3:SetRange(LOCATION_GRAVE)
e3:SetCondition(aux.exccon) e3:SetCondition(aux.exccon)
e3:SetCountLimit(1,10105676) e3:SetCountLimit(1,101056760)
e3:SetCost(c10105676.cost) e3:SetCost(c10105676.cost)
e3:SetTarget(c10105676.sptg) e3:SetTarget(c10105676.sptg)
e3:SetOperation(c10105676.spop) e3:SetOperation(c10105676.spop)
......
...@@ -108,21 +108,27 @@ function cm.reop(e,tp,eg,ep,ev,re,r,rp) ...@@ -108,21 +108,27 @@ function cm.reop(e,tp,eg,ep,ev,re,r,rp)
oc:RegisterFlagEffect(m-1,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid) oc:RegisterFlagEffect(m-1,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
end end
og:KeepAlive() og:KeepAlive()
local e1=Effect.CreateEffect(c) if Duel.GetCurrentChain()>1 then
e1:SetDescription(aux.Stringid(11451461,0)) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetDescription(aux.Stringid(11451461,0))
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_SOLVED) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCountLimit(1) e1:SetCode(EVENT_CHAIN_SOLVED)
e1:SetLabel(fid) e1:SetCountLimit(1)
e1:SetLabelObject(og) e1:SetLabel(fid)
e1:SetCondition(cm.retcon) e1:SetLabelObject(og)
e1:SetOperation(cm.retop) e1:SetCondition(cm.retcon)
e1:SetReset(RESET_CHAIN) e1:SetOperation(cm.retop)
Duel.RegisterEffect(e1,tp) e1:SetReset(RESET_CHAIN)
local e2=e1:Clone() Duel.RegisterEffect(e1,tp)
e2:SetCode(EVENT_CHAIN_NEGATED) local e2=e1:Clone()
Duel.RegisterEffect(e2,tp) e2:SetCode(EVENT_CHAIN_NEGATED)
Duel.RegisterEffect(e2,tp)
else
e:SetLabel(fid)
e:SetLabelObject(og)
cm.retop(e,tp,eg,ep,ev,re,r,rp)
end
end end
end end
end end
......
...@@ -45,12 +45,12 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -45,12 +45,12 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tg=te:GetTarget() local tg=te:GetTarget()
return tg and tg(e,tp,eg,ep,ev,re,r,rp,0,chkc) return tg and tg(e,tp,eg,ep,ev,re,r,rp,0,chkc)
end end
if chk==0 then return e:IsCostChecked() and Duel.IsExistingTarget(cm.filter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) end if chk==0 then return e:IsCostChecked() and Duel.IsExistingTarget(cm.filter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,e:GetHandler()) end
e:SetProperty(EFFECT_FLAG_CARD_TARGET) e:SetProperty(EFFECT_FLAG_CARD_TARGET)
local _GetCurrentChain=Duel.GetCurrentChain local _GetCurrentChain=Duel.GetCurrentChain
Duel.GetCurrentChain=function() return _GetCurrentChain()-1 end Duel.GetCurrentChain=function() return _GetCurrentChain()-1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g=Duel.SelectTarget(tp,cm.filter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,cm.filter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,e:GetHandler())
local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true) local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true)
Duel.GetCurrentChain=_GetCurrentChain Duel.GetCurrentChain=_GetCurrentChain
Duel.ClearTargetCard() Duel.ClearTargetCard()
......
...@@ -115,6 +115,7 @@ function cm.xyzop(e,tp,eg,ep,ev,re,r,rp) ...@@ -115,6 +115,7 @@ function cm.xyzop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject() local te=e:GetLabelObject()
local mg=Duel.GetMatchingGroup(cm.filter3,tp,LOCATION_HAND+LOCATION_MZONE,0,nil) local mg=Duel.GetMatchingGroup(cm.filter3,tp,LOCATION_HAND+LOCATION_MZONE,0,nil)
if Duel.SelectYesNo(tp,aux.Stringid(m,2)) then if Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
cm[0]=0
te:GetTarget()(te,tp,eg,ep,ev,re,r,rp,1,c,mg,2,2) te:GetTarget()(te,tp,eg,ep,ev,re,r,rp,1,c,mg,2,2)
te:GetOperation()(te,tp,eg,ep,ev,re,r,rp,c,mg,2,2) te:GetOperation()(te,tp,eg,ep,ev,re,r,rp,c,mg,2,2)
Duel.SpecialSummon(c,SUMMON_TYPE_XYZ,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(c,SUMMON_TYPE_XYZ,tp,tp,true,false,POS_FACEUP)
......
--D.H.P.K.-罪天使安吉拉 --D.H.P.K.-罪天使安吉拉
function c12899017.initial_effect(c) local s,id,o=GetID()
--limtcon function s.initial_effect(c)
local e1=Effect.CreateEffect(c) if not s.global_flag then
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) s.global_flag=true
e1:SetType(EFFECT_TYPE_SINGLE) --act limit
e1:SetCode(EFFECT_CANNOT_TRIGGER) local e1=Effect.CreateEffect(c)
e1:SetCondition(c12899017.limitcon) e1:SetType(EFFECT_TYPE_FIELD)
c:RegisterEffect(e1) e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetTargetRange(0xff,0xff)
e1:SetTarget(s.disable)
Duel.RegisterEffect(e1,0)
end
--spsummon --spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12899017,0)) e2:SetDescription(aux.Stringid(12899017,0))
...@@ -16,9 +20,9 @@ function c12899017.initial_effect(c) ...@@ -16,9 +20,9 @@ function c12899017.initial_effect(c)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,12899017) e2:SetCountLimit(1,12899017)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e2:SetCondition(c12899017.sumcon) e2:SetCondition(s.sumcon)
e2:SetTarget(c12899017.sumtg) e2:SetTarget(s.sumtg)
e2:SetOperation(c12899017.sumop) e2:SetOperation(s.sumop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
-- --
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -27,79 +31,86 @@ function c12899017.initial_effect(c) ...@@ -27,79 +31,86 @@ function c12899017.initial_effect(c)
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,12899017) e3:SetCountLimit(1,12899017)
e3:SetCondition(c12899017.condition) e3:SetCondition(s.condition)
e3:SetTarget(c12899017.target) e3:SetTarget(s.target)
e3:SetOperation(c12899017.operation) e3:SetOperation(s.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c12899017.ndcfilter(c) s.limt_name_hpk=id
function s.disable(e,c)
if c.limt_name_hpk~=id then return end
local tp=c:GetControler()
return (c:IsType(TYPE_EFFECT) or c:GetOriginalType()&TYPE_EFFECT~=0)
and Duel.IsExistingMatchingCard(s.ndcfilter,tp,LOCATION_MZONE,0,1,nil)
end
function s.ndcfilter(c)
return c:IsFacedown() or not c:IsSetCard(0x5a71) return c:IsFacedown() or not c:IsSetCard(0x5a71)
end end
function c12899017.limitcon(e) function s.limitcon(e)
return e:GetHandler():IsLocation(LOCATION_MZONE) return e:GetHandler():IsLocation(LOCATION_MZONE)
and Duel.IsExistingMatchingCard(c12899017.ndcfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(s.ndcfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end end
function c12899017.cfilter(c) function s.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x5a71) return c:IsFaceup() and c:IsSetCard(0x5a71)
end end
function c12899017.sumcon(e,tp,eg,ep,ev,re,r,rp) function s.sumcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c12899017.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c12899017.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c12899017.sumop(e,tp,eg,ep,ev,re,r,rp) function s.sumop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c12899017.setfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.setfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst()) Duel.SSet(tp,g:GetFirst())
end end
end end
end end
function c12899017.setfilter(c) function s.setfilter(c)
return c:IsSetCard(0x6a71) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x6a71) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function c12899017.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end end
function c12899017.filter1(c,e) function s.filter1(c,e)
return c:IsOnField() and not c:IsImmuneToEffect(e) return c:IsOnField() and not c:IsImmuneToEffect(e)
end end
function c12899017.filter2(c,e,tp,m,f,gc,chkf) function s.filter2(c,e,tp,m,f,gc,chkf)
return c:IsSetCard(0xda71) and c:IsType(TYPE_FUSION) and (not f or f(c)) return c:IsSetCard(0xda71) and c:IsType(TYPE_FUSION) and (not f or f(c))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,gc,chkf) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,gc,chkf)
end end
function c12899017.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then if chk==0 then
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil) local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil)
local res=Duel.IsExistingMatchingCard(c12899017.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,c,chkf) local res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,c,chkf)
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
if ce~=nil then if ce~=nil then
local fgroup=ce:GetTarget() local fgroup=ce:GetTarget()
local mg2=fgroup(ce,e,tp) local mg2=fgroup(ce,e,tp)
local mf=ce:GetValue() local mf=ce:GetValue()
res=Duel.IsExistingMatchingCard(c12899017.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,mf,c,chkf) res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,mf,c,chkf)
end end
end end
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 c12899017.operation(e,tp,eg,ep,ev,re,r,rp) function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local chkf=tp local chkf=tp
if not c:IsRelateToEffect(e) or c:IsImmuneToEffect(e) then return end if not c:IsRelateToEffect(e) or c:IsImmuneToEffect(e) then return end
local mg1=Duel.GetFusionMaterial(tp):Filter(c12899017.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(s.filter1,nil,e)
local sg1=Duel.GetMatchingGroup(c12899017.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,c,chkf) local sg1=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,c,chkf)
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -107,7 +118,7 @@ function c12899017.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,7 +118,7 @@ function c12899017.operation(e,tp,eg,ep,ev,re,r,rp)
local fgroup=ce:GetTarget() local fgroup=ce:GetTarget()
mg2=fgroup(ce,e,tp) mg2=fgroup(ce,e,tp)
local mf=ce:GetValue() local mf=ce:GetValue()
sg2=Duel.GetMatchingGroup(c12899017.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,mf,c,chkf) sg2=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,mf,c,chkf)
end end
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
local sg=sg1:Clone() local sg=sg1:Clone()
......
...@@ -15,7 +15,7 @@ function c98920708.initial_effect(c) ...@@ -15,7 +15,7 @@ function c98920708.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DRAW) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,84941195) e2:SetCountLimit(1,98960708)
e2:SetCost(c98920708.tgcost) e2:SetCost(c98920708.tgcost)
e2:SetTarget(c98920708.target) e2:SetTarget(c98920708.target)
e2:SetOperation(c98920708.operation) e2:SetOperation(c98920708.operation)
...@@ -28,7 +28,7 @@ function c98920708.initial_effect(c) ...@@ -28,7 +28,7 @@ function c98920708.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_LEAVE_FIELD) e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,84941196) e3:SetCountLimit(1,98960709)
e3:SetCondition(c98920708.descon) e3:SetCondition(c98920708.descon)
e3:SetTarget(c98920708.destg) e3:SetTarget(c98920708.destg)
e3:SetOperation(c98920708.desop) e3:SetOperation(c98920708.desop)
......
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