Commit a59862ca authored by Huangnan's avatar Huangnan

fix

parent 1418b02f
Pipeline #33307 passed with stages
in 54 minutes and 36 seconds
No preview for this file type
...@@ -175,6 +175,7 @@ function s.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -175,6 +175,7 @@ function s.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.tgcfilter,tp,LOCATION_GRAVE,0,3,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.tgcfilter,tp,LOCATION_GRAVE,0,3,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,s.tgcfilter,tp,LOCATION_GRAVE,0,3,3,nil) local g=Duel.SelectMatchingCard(tp,s.tgcfilter,tp,LOCATION_GRAVE,0,3,3,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,0,LOCATION_ONFIELD,1,nil) end
......
...@@ -13,6 +13,7 @@ function c60001173.initial_effect(c) ...@@ -13,6 +13,7 @@ function c60001173.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(60001173,1)) e2:SetDescription(aux.Stringid(60001173,1))
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCategory(CATEGORY_TODECK) e2:SetCategory(CATEGORY_TODECK)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
......
--绝高无上·纯洁 --绝高无上·纯洁
local m=60002159 local s,id,o=GetID()
local cm=_G["c"..m] function s.initial_effect(c)
function cm.initial_effect(c) c:EnableCounterPermit(0x624)
c:EnableCounterPermit(0x624) c:EnableReviveLimit()
c:EnableReviveLimit() --cannot special summon
--cannot special summon local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(aux.FALSE)
e1:SetValue(aux.FALSE) c:RegisterEffect(e1)
c:RegisterEffect(e1) --special summon
--special summon local e2=Effect.CreateEffect(c)
local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0))
e2:SetDescription(aux.Stringid(m,0)) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetCode(EFFECT_SPSUMMON_PROC) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e2:SetRange(LOCATION_HAND)
e2:SetRange(LOCATION_HAND) e2:SetCondition(s.spcon)
e2:SetCondition(cm.spcon) c:RegisterEffect(e2)
c:RegisterEffect(e2) if not s.global_check then
if not cm.global_check then s.global_check=true
cm.global_check=true local ge1=Effect.CreateEffect(c)
local ge1=Effect.CreateEffect(c) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetCode(EVENT_DESTROYED)
ge1:SetCode(EVENT_DESTROYED) ge1:SetCondition(s.descon)
ge1:SetCondition(cm.descon) ge1:SetOperation(s.checkop)
ge1:SetOperation(cm.checkop) Duel.RegisterEffect(ge1,0)
Duel.RegisterEffect(ge1,0) end
end --spsummon success
--spsummon success local e4=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1))
e1:SetDescription(aux.Stringid(m,1)) e4:SetCategory(CATEGORY_COUNTER) --修正e1为e4
e1:SetCategory(CATEGORY_COUNTER) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e4:SetTarget(s.destg)
e1:SetTarget(cm.destg) e4:SetOperation(s.desop)
e1:SetOperation(cm.desop) c:RegisterEffect(e4) --修正e1为e4
c:RegisterEffect(e1)
--attackup --attackup
local e3=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e5:SetType(EFFECT_TYPE_SINGLE) --修正e3为e5
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_UPDATE_ATTACK) e5:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetCondition(cm.incon) e5:SetCondition(s.incon)
e3:SetValue(800) e5:SetValue(800)
c:RegisterEffect(e3) c:RegisterEffect(e5) --修正e3为e5
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) local e6=Effect.CreateEffect(c) --修正变量名为e6
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e6:SetType(EFFECT_TYPE_SINGLE)
e3:SetRange(LOCATION_MZONE) e6:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetCode(EFFECT_UPDATE_DEFENSE) e6:SetRange(LOCATION_MZONE)
e3:SetCondition(cm.incon) e6:SetCode(EFFECT_UPDATE_DEFENSE)
e3:SetValue(800) e6:SetCondition(s.incon)
c:RegisterEffect(e3) e6:SetValue(800)
--Evolve c:RegisterEffect(e6) --修正e3为e6
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1)) --Evolve
e3:SetCategory(CATEGORY_TOKEN) local e7=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_IGNITION) e7:SetDescription(aux.Stringid(id,2))
e3:SetRange(LOCATION_MZONE) e7:SetCategory(CATEGORY_TOKEN) --修正e3为e7
e3:SetCountLimit(1) e7:SetType(EFFECT_TYPE_IGNITION)
e3:SetCost(cm.spcost) e7:SetRange(LOCATION_MZONE)
e3:SetTarget(cm.sptg) e7:SetCountLimit(1)
e3:SetOperation(cm.spop) e7:SetCost(s.spcost)
c:RegisterEffect(e3) e7:SetTarget(s.sptg)
e7:SetOperation(s.spop)
c:RegisterEffect(e7) --修正e3为e7
end end
function cm.incon(e)
return Card.GetCounter(e:GetHandler(),0x624)>=1 function s.incon(e)
return Card.GetCounter(e:GetHandler(),0x624)>=1
end end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() function s.descon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and c:IsPreviousControler(tp) local c=e:GetHandler()
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and c:IsPreviousControler(tp)
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() function s.checkop(e,tp,eg,ep,ev,re,r,rp)
while tc do local tc=eg:GetFirst()
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1000) while tc do
tc=eg:GetNext() Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1000)
end tc=eg:GetNext()
end
end end
function cm.spcon(e,c)
if c==nil then return true end function s.spcon(e,c)
local tp=c:GetControler() if c==nil then return true end
local rg=Duel.GetReleaseGroup(tp) local tp=c:GetControler()
return rg:CheckSubGroup(aux.mzctcheckrel,3,3,tp) local rg=Duel.GetReleaseGroup(tp)
return rg:CheckSubGroup(aux.mzctcheckrel,3,3,tp)
end end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end if chkc then return chkc:IsOnField() end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() function s.desop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then local tc=Duel.GetFirstTarget()
Duel.Remove(c,POS_FACEDOWN,REASON_EFFECT) if tc:IsRelateToEffect(e) then
end Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
end
end end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,LOCATION_ONFIELD,0,0x624,2,REASON_COST) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,LOCATION_ONFIELD,0,0x624,2,REASON_COST) if chk==0 then return Duel.IsCanRemoveCounter(tp,LOCATION_ONFIELD,0,0x624,2,REASON_COST) end
Duel.RemoveCounter(tp,LOCATION_ONFIELD,0,0x624,2,REASON_COST)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ht=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) if chk==0 then return Duel.IsPlayerCanDraw(tp) end
Duel.SetTargetPlayer(tp) local ht=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
Duel.SetTargetParam(6-ht) Duel.SetTargetPlayer(tp)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,26-ht) Duel.SetTargetParam(6-ht)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,1,0,0x624) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,6-ht)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,1,0,0x624)
end end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then function s.spop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x624,1) if e:GetHandler():IsRelateToEffect(e) then
Duel.RegisterFlagEffect(tp,60002148,RESET_PHASE+PHASE_END,0,1000) e:GetHandler():AddCounter(0x624,1)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE+PHASE_END,0,1000)
local ht=Duel.GetFieldGroupCount(p,LOCATION_HAND,0) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
if ht<6 then local ht=Duel.GetFieldGroupCount(p,LOCATION_HAND,0)
Duel.Draw(p,6-ht,REASON_EFFECT) if ht<6 then
end Duel.Draw(p,6-ht,REASON_EFFECT)
end end
end
end end
...@@ -36,7 +36,7 @@ function cm.ovfilter(c) ...@@ -36,7 +36,7 @@ function cm.ovfilter(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsRace(RACE_ZOMBIE) and c:IsRankAbove(5) return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsRace(RACE_ZOMBIE) and c:IsRankAbove(5)
end end
function cm.xyzop(e,tp,chk) function cm.xyzop(e,tp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_GRAVE,0,1,nil) and Duel.GetFlagEffect(tp,m)==0 end
Duel.Hint(HINTMSG_SELECT,tp,HINTMSG_REMOVE) Duel.Hint(HINTMSG_SELECT,tp,HINTMSG_REMOVE)
local rg=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_GRAVE,0,1,1,nil) local rg=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(rg,POS_FACEUP,REASON_COST) Duel.Remove(rg,POS_FACEUP,REASON_COST)
......
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