Commit ca2a7b4c authored by POLYMER's avatar POLYMER

fix

parent 7ae8d9d6
...@@ -5,7 +5,6 @@ function c43990107.initial_effect(c) ...@@ -5,7 +5,6 @@ function c43990107.initial_effect(c)
-- 超量召唤规则 -- 超量召唤规则
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddXyzProcedureLevelFree(c,c43990107.mfilter,nil,2,99) aux.AddXyzProcedureLevelFree(c,c43990107.mfilter,nil,2,99)
aux.AddXyzProcedure(c,aux.TRUE,4,1)
-- 效果①:破怪+检索+自爆连锁 -- 效果①:破怪+检索+自爆连锁
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -18,14 +18,16 @@ function c71000176.initial_effect(c) ...@@ -18,14 +18,16 @@ function c71000176.initial_effect(c)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsCode,71000100)) e2:SetTarget(c71000176.indtg)
e2:SetValue(1) e2:SetValue(1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetValue(aux.indoval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e2:Clone() local e4=e2:Clone()
e4:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET) e4:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
e4:SetValue(aux.indoval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--3 --3
local e12=Effect.CreateEffect(c) local e12=Effect.CreateEffect(c)
...@@ -50,7 +52,9 @@ function c71000176.splimit(e,c,sump,sumtype,sumpos,targetp,se) ...@@ -50,7 +52,9 @@ function c71000176.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsRace(RACE_SPELLCASTER) return not c:IsRace(RACE_SPELLCASTER)
end end
--1 --1
function c71000176.indtg(e,c)
return c:IsCode(71000100) and c~=e:GetHandler()
end
function c71000176.f(c) function c71000176.f(c)
return c:IsAbleToHand() and c:IsSetCard(0xe73) return c:IsAbleToHand() and c:IsSetCard(0xe73)
end end
......
...@@ -97,8 +97,3 @@ function c75030002.xxop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,8 +97,3 @@ function c75030002.xxop(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(function(c) return c:IsFaceup() and c:IsSetCard(0x5751) end,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end) return Duel.IsExistingMatchingCard(function(c) return c:IsFaceup() and c:IsSetCard(0x5751) end,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
...@@ -22,7 +22,6 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,7 +22,6 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
if a:IsSetCard(0x5751) then if a:IsSetCard(0x5751) then
Duel.RegisterFlagEffect(a:GetControler(),id,nil,0,1) Duel.RegisterFlagEffect(a:GetControler(),id,nil,0,1)
--Debug.Message("攻击次数:"..Duel.GetFlagEffect(a:GetControler(),id))
end end
end end
function s.cfilter(c) function s.cfilter(c)
......
...@@ -90,8 +90,3 @@ function c75030013.xxop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,8 +90,3 @@ function c75030013.xxop(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(function(c) return c:IsFaceup() and c:IsSetCard(0x753) end,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end) return Duel.IsExistingMatchingCard(function(c) return c:IsFaceup() and c:IsSetCard(0x753) end,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
...@@ -77,7 +77,3 @@ end ...@@ -77,7 +77,3 @@ end
function c75030020.desop(e,tp,eg,ep,ev,re,r,rp) function c75030020.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT) Duel.Destroy(e:GetHandler(),REASON_EFFECT)
end end
...@@ -92,15 +92,3 @@ function c75030022.xdaop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,15 +92,3 @@ function c75030022.xdaop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,75030022) Duel.Hint(HINT_CARD,0,75030022)
Duel.Damage(1-tp,ev,REASON_EFFECT) Duel.Damage(1-tp,ev,REASON_EFFECT)
end end
...@@ -134,8 +134,3 @@ function c75030023.idop(e,tp,eg,ep,ev,re,r,rp) ...@@ -134,8 +134,3 @@ function c75030023.idop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
...@@ -115,10 +115,3 @@ function c75030024.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -115,10 +115,3 @@ function c75030024.seqop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
...@@ -67,11 +67,3 @@ function c75030025.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,11 +67,3 @@ function c75030025.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end end
end end
...@@ -129,5 +129,3 @@ function c75030026.bxxop(e,tp,eg,ep,ev,re,r,rp) ...@@ -129,5 +129,3 @@ function c75030026.bxxop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(b,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(b,POS_FACEDOWN,REASON_EFFECT)
end end
end end
...@@ -69,4 +69,3 @@ end ...@@ -69,4 +69,3 @@ end
function c75030028.repop(e,tp,eg,ep,ev,re,r,rp) function c75030028.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
end end
...@@ -17,7 +17,6 @@ function c75030029.initial_effect(c) ...@@ -17,7 +17,6 @@ function c75030029.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetTargetRange(1,0)
e1:SetTarget(function(e,c) e1:SetTarget(function(e,c)
return c:IsCode(75030029) end) return c:IsCode(75030029) end)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
......
...@@ -103,7 +103,7 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,7 +103,7 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(math.ceil(atk/2)) e2:SetValue(math.ceil(atk/2))
c:RegisterEffect(e2) c:RegisterEffect(e2)
if tc:IsFaceup() and tc:IsRelateToBattle(e) and not tc:IsImmuneToEffect(e) then if tc:IsFaceup() and tc:IsRelateToBattle(e) and not tc:IsImmuneToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateDuel(e)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL)
......
...@@ -5,7 +5,7 @@ function s.initial_effect(c) ...@@ -5,7 +5,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY+CATEGORY_DRAW) e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SPSUMMON) e1:SetCode(EVENT_SPSUMMON)
e1:SetCountLimit(1,id+o) e1:SetCountLimit(1,id)
e1:SetCondition(s.condition) e1:SetCondition(s.condition)
e1:SetTarget(s.target) e1:SetTarget(s.target)
e1:SetOperation(s.activate) e1:SetOperation(s.activate)
......
...@@ -54,7 +54,6 @@ function s.initial_effect(c) ...@@ -54,7 +54,6 @@ function s.initial_effect(c)
e1:SetOperation(s.atkop) e1:SetOperation(s.atkop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.econ(e) function s.econ(e)
return e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,75030004) return e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,75030004)
end end
...@@ -90,7 +89,6 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,7 +89,6 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function s.efilter(e,te) function s.efilter(e,te)
return te:IsActiveType(TYPE_MONSTER) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() return te:IsActiveType(TYPE_MONSTER) and te:GetOwnerPlayer()~=e:GetHandlerPlayer()
end end
...@@ -101,7 +99,6 @@ function s.lv_or_rk(c) ...@@ -101,7 +99,6 @@ function s.lv_or_rk(c)
if c:IsType(TYPE_XYZ) then return c:GetRank() if c:IsType(TYPE_XYZ) then return c:GetRank()
else return c:GetLevel() end else return c:GetLevel() end
end end
function s.atkcon(e,tp,eg,ep,ev,re,r,rp) function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
......
...@@ -18,7 +18,7 @@ function c75030040.initial_effect(c) ...@@ -18,7 +18,7 @@ function c75030040.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,15030040) e2:SetCountLimit(1,75030041)
e2:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk) e2:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end if chk==0 then return Duel.CheckLPCost(tp,1000) end
Duel.PayLPCost(tp,1000) end) Duel.PayLPCost(tp,1000) end)
...@@ -115,10 +115,3 @@ function c75030040.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -115,10 +115,3 @@ function c75030040.seqop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
...@@ -12,7 +12,7 @@ function s.initial_effect(c) ...@@ -12,7 +12,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_DESTROY+CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,id+o) e2:SetCountLimit(1,id)
e2:SetTarget(s.target) e2:SetTarget(s.target)
e2:SetOperation(s.operation) e2:SetOperation(s.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -37,7 +37,6 @@ end ...@@ -37,7 +37,6 @@ end
function s.indestg(e,c) function s.indestg(e,c)
return c==e:GetHandler():GetBattleTarget() return c==e:GetHandler():GetBattleTarget()
end end
function s.retcon(e,tp,eg,ep,ev,re,r,rp) function s.retcon(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToBattle() then return false end if not e:GetHandler():IsRelateToBattle() then return false end
local t=nil local t=nil
...@@ -55,6 +54,3 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,6 +54,3 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(e:GetLabelObject(),nil,REASON_EFFECT) Duel.SendtoHand(e:GetLabelObject(),nil,REASON_EFFECT)
end end
end end
--拂晓神使 萨琪娜 --拂晓神使 萨琪娜
local s,id,o=GetID() function c75030047.initial_effect(c)
function s.initial_effect(c) --
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(75030047,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_DESTROYED) e1:SetCode(EVENT_DESTROYED)
e1:SetCountLimit(1,id+o) e1:SetCountLimit(1,75030047)
e1:SetCondition(s.spcon) e1:SetCondition(c75030047.spcon)
e1:SetTarget(s.sptg) e1:SetTarget(c75030047.sptg)
e1:SetOperation(s.spop) e1:SetOperation(c75030047.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
------- --
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(75030047,1))
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND) e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,id+o*2) e2:SetCountLimit(1,75030048)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetTarget(s.thtg) e2:SetTarget(c75030047.thtg)
e2:SetOperation(s.thop) e2:SetOperation(c75030047.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
...@@ -33,61 +33,59 @@ function s.initial_effect(c) ...@@ -33,61 +33,59 @@ function s.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DELAY) e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCode(EVENT_DESTROYED) e4:SetCode(EVENT_DESTROYED)
e4:SetCountLimit(1,id+o*3) e4:SetCountLimit(1,85030047)
e4:SetCondition(s.spcon1) e4:SetCondition(c75030047.spcon1)
e4:SetTarget(s.sptg1) e4:SetTarget(c75030047.sptg1)
e4:SetOperation(s.spop1) e4:SetOperation(c75030047.spop1)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c75030047.cfilter(c,tp)
function s.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_MZONE+LOCATION_HAND) and c:IsPreviousControler(tp) return c:IsPreviousLocation(LOCATION_MZONE+LOCATION_HAND) and c:IsPreviousControler(tp)
and c:IsReason(REASON_EFFECT) and c:IsSetCard(0x6751) and c:IsReason(REASON_EFFECT) and c:IsSetCard(0x6751)
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function c75030047.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp) return eg:IsExists(c75030047.cfilter,1,nil,tp)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c75030047.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
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 s.spop(e,tp,eg,ep,ev,re,r,rp) function c75030047.spop(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
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
function c75030047.thfilter(c)
function s.thfilter(c)
return c:IsSetCard(0x6751) and c:IsAbleToHand() and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsSetCard(0x6751) and c:IsAbleToHand() and c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c75030047.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c75030047.thfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function s.thop(e,tp,eg,ep,ev,re,r,rp) function c75030047.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c75030047.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if #g~=0 then if #g~=0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function s.spcon1(e,tp,eg,ep,ev,re,r,rp) function c75030047.spcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) return e:GetHandler():IsReason(REASON_DESTROY)
end end
function s.spfilter(c,e,tp) function c75030047.spfilter(c,e,tp)
return c:IsCode(75030024) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsCode(75030024) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function s.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) function c75030047.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c75030047.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function s.spop1(e,tp,eg,ep,ev,re,r,rp) function c75030047.spop1(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c75030047.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end end
......
--晓风之刃 魔器萨扎 --晓风之刃 魔器萨扎
local s,id,o=GetID() function c75030049.initial_effect(c)
function s.initial_effect(c) --
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,2)) e2:SetDescription(aux.Stringid(75030049,2))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND+LOCATION_GRAVE) e2:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,id+o) e2:SetCountLimit(1,75030049)
e2:SetTarget(s.sptg) e2:SetTarget(c75030049.sptg)
e2:SetOperation(s.spop) e2:SetOperation(c75030049.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--pendulum --pendulum
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(75030049,0))
e1:SetCategory(CATEGORY_DESTROY) e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_DESTROYED) e1:SetCode(EVENT_DESTROYED)
e1:SetCountLimit(1,id+o*2) e1:SetCountLimit(1,75030050)
e1:SetCondition(s.descon) e1:SetCondition(c75030049.descon)
e1:SetTarget(s.destg) e1:SetTarget(c75030049.destg)
e1:SetOperation(s.desop) e1:SetOperation(c75030049.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
----- --
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1)) e3:SetDescription(aux.Stringid(75030049,1))
e3:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND) e3:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SUMMON_SUCCESS) e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetCountLimit(1,id+o*3) e3:SetCountLimit(1,85030049)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetTarget(s.thtg) e3:SetTarget(c75030049.thtg)
e3:SetOperation(s.thop) e3:SetOperation(c75030049.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone() local e4=e3:Clone()
e4:SetCode(EVENT_SPSUMMON_SUCCESS) e4:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function s.spfilter(c) function c75030049.spfilter(c)
return c:IsSetCard(0x5751,0x6751) and not c:IsCode(56677752) and c:IsFaceup() and c:GetOriginalType()&TYPE_MONSTER~=0 return c:IsSetCard(0x5751,0x6751) and not c:IsCode(56677752) and c:IsFaceup() and c:GetOriginalType()&TYPE_MONSTER~=0
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c75030049.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and s.spfilter(chkc) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c75030049.spfilter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingTarget(s.spfilter,tp,LOCATION_ONFIELD,0,1,nil) end and Duel.IsExistingTarget(c75030049.spfilter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectTarget(tp,c75030049.spfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function c75030049.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
...@@ -61,33 +61,33 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,33 +61,33 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
function s.descon(e,tp,eg,ep,ev,re,r,rp) function c75030049.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) return e:GetHandler():IsReason(REASON_DESTROY)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c75030049.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function c75030049.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
---- ----
function s.thfilter(c) function c75030049.thfilter(c)
return c:IsSetCard(0x6751) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x6751) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER)
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c75030049.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c75030049.thfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function s.thop(e,tp,eg,ep,ev,re,r,rp) function c75030049.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c75030049.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if #g~=0 then if #g~=0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
......
...@@ -16,12 +16,12 @@ function s.initial_effect(c) ...@@ -16,12 +16,12 @@ function s.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetCountLimit(1,id+o) e1:SetCountLimit(1,id)
e1:SetCondition(s.dspcon) e1:SetCondition(s.dspcon)
e1:SetTarget(s.dsptg) e1:SetTarget(s.dsptg)
e1:SetOperation(s.dspop) e1:SetOperation(s.dspop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--------- --
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
...@@ -29,7 +29,7 @@ function s.initial_effect(c) ...@@ -29,7 +29,7 @@ function s.initial_effect(c)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetValue(1) e2:SetValue(1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--------- --
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,0)) e3:SetDescription(aux.Stringid(id,0))
e3:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY) e3:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
......
--黎明的咒歌 --黎明的咒歌
local s,id,o=GetID() function c75030055.initial_effect(c)
function s.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY) e1:SetCategory(CATEGORY_DESTROY)
...@@ -8,54 +7,54 @@ function s.initial_effect(c) ...@@ -8,54 +7,54 @@ function s.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetCountLimit(1,id+o) e1:SetCountLimit(1,75030055)
e1:SetTarget(s.target) e1:SetTarget(c75030055.target)
e1:SetOperation(s.activate) e1:SetOperation(c75030055.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EFFECT_DESTROY_REPLACE) e2:SetCode(EFFECT_DESTROY_REPLACE)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,id+o*2) e2:SetCountLimit(1,85030055)
e2:SetTarget(s.reptg) e2:SetTarget(c75030055.reptg)
e2:SetValue(s.repval) e2:SetValue(c75030055.repval)
e2:SetOperation(s.repop) e2:SetOperation(c75030055.repop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.filter(c,e) function c75030055.filter(c,e)
return c:IsSetCard(0x6751) and c:IsFaceup() and c:IsCanBeEffectTarget(e) return c:IsSetCard(0x6751) and c:IsFaceup() and c:IsCanBeEffectTarget(e)
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c75030055.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil)
and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil,e) end and Duel.IsExistingTarget(c75030055.filter,tp,LOCATION_MZONE,0,1,nil,e) end
local ct1=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil,e) local ct1=Duel.GetMatchingGroupCount(c75030055.filter,tp,LOCATION_MZONE,0,nil,e)
local ct2=Duel.GetMatchingGroupCount(Card.IsCanBeEffectTarget,tp,0,LOCATION_ONFIELD,nil,e) local ct2=Duel.GetMatchingGroupCount(Card.IsCanBeEffectTarget,tp,0,LOCATION_ONFIELD,nil,e)
local mc=math.min(ct1,ct2) local mc=math.min(ct1,ct2)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g1=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,mc,nil,e) local g1=Duel.SelectTarget(tp,c75030055.filter,tp,LOCATION_MZONE,0,1,mc,nil,e)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g2=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,#g1,#g1,nil) local g2=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,#g1,#g1,nil)
g1:Merge(g2) g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,#g1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,#g1,0,0)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function c75030055.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local sg=g:Filter(Card.IsRelateToEffect,nil,e) local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
end end
function s.repfilter(c,tp) function c75030055.repfilter(c,tp)
return not c:IsReason(REASON_REPLACE) and c:IsFaceup() and c:IsSetCard(0x6751) and c:IsControler(tp) and c:IsReason(REASON_EFFECT) return not c:IsReason(REASON_REPLACE) and c:IsFaceup() and c:IsSetCard(0x6751) and c:IsControler(tp) and c:IsReason(REASON_EFFECT)
end end
function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c75030055.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(s.repfilter,1,nil,tp) end if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c75030055.repfilter,1,nil,tp) end
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96) return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end end
function s.repval(e,c) function c75030055.repval(e,c)
return s.repfilter(c,e:GetHandlerPlayer()) return c75030055.repfilter(c,e:GetHandlerPlayer())
end end
function s.repop(e,tp,eg,ep,ev,re,r,rp) function c75030055.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT+REASON_REPLACE) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT+REASON_REPLACE)
end end
...@@ -7,7 +7,7 @@ function s.initial_effect(c) ...@@ -7,7 +7,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_HAND) e1:SetCode(EVENT_TO_HAND)
e1:SetCountLimit(1,id+o) e1:SetCountLimit(1,id)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCondition(s.spcon) e1:SetCondition(s.spcon)
e1:SetTarget(s.sptg) e1:SetTarget(s.sptg)
...@@ -20,7 +20,7 @@ function s.initial_effect(c) ...@@ -20,7 +20,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,id+o*2) e2:SetCountLimit(1,id+o)
e2:SetTarget(s.thtg) e2:SetTarget(s.thtg)
e2:SetOperation(s.thop) e2:SetOperation(s.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -34,7 +34,7 @@ function s.initial_effect(c) ...@@ -34,7 +34,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_DESTROYED) e3:SetCode(EVENT_DESTROYED)
e3:SetCountLimit(1,id+o*3) e3:SetCountLimit(1,id+o*2)
e3:SetTarget(s.tdtg) e3:SetTarget(s.tdtg)
e3:SetOperation(s.tdop) e3:SetOperation(s.tdop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
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