Commit 73b02c9f authored by Huangnan's avatar Huangnan

fix

parent 0a1091a5
Pipeline #32697 passed with stages
in 44 minutes and 3 seconds
No preview for this file type
...@@ -3,7 +3,7 @@ local s,id,o=GetID() ...@@ -3,7 +3,7 @@ local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--link summon --link summon
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddLinkProcedure(c,s.mfilter,1,1) aux.AddLinkProcedure(c,s.lkfilter,1,1)
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
...@@ -11,7 +11,6 @@ function s.initial_effect(c) ...@@ -11,7 +11,6 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,id)
e1:SetCondition(s.thcon) e1:SetCondition(s.thcon)
e1:SetTarget(s.thtg) e1:SetTarget(s.thtg)
e1:SetOperation(s.thop) e1:SetOperation(s.thop)
...@@ -22,13 +21,13 @@ function s.initial_effect(c) ...@@ -22,13 +21,13 @@ function s.initial_effect(c)
e5:SetCode(EVENT_FREE_CHAIN) e5:SetCode(EVENT_FREE_CHAIN)
e5:SetProperty(EFFECT_FLAG_CARD_TARGET) e5:SetProperty(EFFECT_FLAG_CARD_TARGET)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1,id+o) e5:SetCountLimit(1,id)
e5:SetCost(s.immcost) e5:SetCost(s.immcost)
e5:SetTarget(s.immtg) e5:SetTarget(s.immtg)
e5:SetOperation(s.immop) e5:SetOperation(s.immop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function s.mfilter(c) function s.lkfilter(c)
return c:IsCode(11600024) return c:IsCode(11600024)
end end
-- --
...@@ -36,7 +35,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +35,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x9541) and c:IsAbleToHand() return c:IsSetCard(0x9541) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.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) and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,e:GetHandler()) end
...@@ -78,7 +77,7 @@ function s.immop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,7 +77,7 @@ function s.immop(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.Recover(tp,tc:GetAttack(),REASON_EFFECT) Duel.Recover(tp,tc:GetAttack(),REASON_EFFECT)
local e1_1=Effect.CreateEffect(c) local e1_1=Effect.CreateEffect(e:GetHandler())
e1_1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE) e1_1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE)
e1_1:SetType(EFFECT_TYPE_SINGLE) e1_1:SetType(EFFECT_TYPE_SINGLE)
e1_1:SetRange(LOCATION_MZONE) e1_1:SetRange(LOCATION_MZONE)
......
--枫丹 发条机关·算力增幅器 --枫丹 发条机关·算力增幅器
local s,id,o=GetID() local s,id=GetID()
function s.initial_effect(c) function s.initial_effect(c)
-- --
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -17,7 +17,7 @@ function s.initial_effect(c) ...@@ -17,7 +17,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_SUMMON_SUCCESS) e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetCountLimit(1,id+0) e3:SetCountLimit(1,id+10000)
e3:SetCost(s.sumcost) e3:SetCost(s.sumcost)
e3:SetTarget(s.sumtg) e3:SetTarget(s.sumtg)
e3:SetOperation(s.sumop) e3:SetOperation(s.sumop)
...@@ -49,7 +49,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local cost=te:GetCost() local cost=te:GetCost()
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
Duel.RaiseEvent(tc,4179255,te,0,tp,tp,Duel.GetCurrentChain()) Duel.RaiseEvent(tc,4179255,te,0,tp,tp,Duel.GetCurrentChain())
local c=e:GetHandler()
--activate cost --activate cost
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
...@@ -68,17 +68,17 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,17 +68,17 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local pos=0 local pos=0
if c:IsSummonable(true,nil,1) then pos=pos+POS_FACEUP_ATTACK end if c:IsSummonable(true,nil) then pos=pos+POS_FACEUP_ATTACK end
if c:IsMSetable(true,nil,1) then pos=pos+POS_FACEDOWN_DEFENSE end if c:IsMSetable(true,nil) then pos=pos+POS_FACEDOWN_DEFENSE end
if pos==0 then return end if pos==0 then return end
if Duel.SelectPosition(tp,c,pos)==POS_FACEUP_ATTACK then if Duel.SelectPosition(tp,c,pos)==POS_FACEUP_ATTACK then
Duel.PayLPCost(tp,800) Duel.PayLPCost(tp,800)
Duel.Summon(tp,c,true,nil,1) Duel.Summon(tp,c,true,nil)
else else
Duel.PayLPCost(tp,800) Duel.PayLPCost(tp,800)
Duel.MSet(tp,c,true,nil,1) Duel.MSet(tp,c,true,nil)
end end
end end
end end
......
--枫丹 攻坚特化型发条机关 --枫丹 攻坚特化型发条机关
local s,id,o=GetID() local s,id=GetID()
function s.initial_effect(c) function s.initial_effect(c)
-- --
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -17,7 +17,7 @@ function s.initial_effect(c) ...@@ -17,7 +17,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
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) e2:SetCountLimit(1,id+10000)
e2:SetOperation(s.regop) e2:SetOperation(s.regop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
-- --
...@@ -26,7 +26,7 @@ function s.initial_effect(c) ...@@ -26,7 +26,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_RELEASE) e3:SetCode(EVENT_RELEASE)
e3:SetCountLimit(1,id+2*o) e3:SetCountLimit(1,id+20000)
e3:SetTarget(s.target2) e3:SetTarget(s.target2)
e3:SetOperation(s.activate2) e3:SetOperation(s.activate2)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -17,7 +17,7 @@ function s.initial_effect(c) ...@@ -17,7 +17,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
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) e2:SetCountLimit(1,id+10000)
e2:SetOperation(s.regop) e2:SetOperation(s.regop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
-- --
...@@ -26,7 +26,7 @@ function s.initial_effect(c) ...@@ -26,7 +26,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_RELEASE) e3:SetCode(EVENT_RELEASE)
e3:SetCountLimit(1,id+2*o) e3:SetCountLimit(1,id+20000)
e3:SetTarget(s.target2) e3:SetTarget(s.target2)
e3:SetOperation(s.activate2) e3:SetOperation(s.activate2)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -115,7 +115,7 @@ function cm.effcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -115,7 +115,7 @@ function cm.effcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) end if chkc then return chkc:IsLocation(LOCATION_MZONE) end
if chk==0 then return true end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter2,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local g=Duel.SelectTarget(tp,cm.thfilter2,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,cm.thfilter2,tp,0,LOCATION_MZONE,1,1,nil)
end end
......
...@@ -13,7 +13,7 @@ function c23100061.initial_effect(c) ...@@ -13,7 +13,7 @@ function c23100061.initial_effect(c)
end end
c23100061.named_with_ZhanShuRenXing=true c23100061.named_with_ZhanShuRenXing=true
function c23100061.filter(c,e,tp) function c23100061.filter(c,e,tp)
return c:IsCode(23100060,23100094,23100095,23100101) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(23100102,23100094,23100095,23100101) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c23100061.target(e,tp,eg,ep,ev,re,r,rp,chk) function c23100061.target(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
......
...@@ -76,7 +76,7 @@ function c23100063.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function c23100063.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c23100063.xthfilter(c) function c23100063.xthfilter(c)
return c:IsCode(24400005) and c:IsAbleToHand() return c:IsCode(23100065) and c:IsAbleToHand()
end end
function c23100063.thtg1(e,tp,eg,ep,ev,re,r,rp,chk) function c23100063.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -24,7 +24,7 @@ function c23100085.initial_effect(c) ...@@ -24,7 +24,7 @@ function c23100085.initial_effect(c)
e2:SetDescription(aux.Stringid(23100085,1)) e2:SetDescription(aux.Stringid(23100085,1))
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE) e2:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CAN_FORBIDDEN)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCost(c23100085.xxcost) e2:SetCost(c23100085.xxcost)
e2:SetTarget(c23100085.xxtg) e2:SetTarget(c23100085.xxtg)
......
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