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()
function s.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,s.mfilter,1,1)
aux.AddLinkProcedure(c,s.lkfilter,1,1)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
......@@ -11,7 +11,6 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,id)
e1:SetCondition(s.thcon)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
......@@ -22,13 +21,13 @@ function s.initial_effect(c)
e5:SetCode(EVENT_FREE_CHAIN)
e5:SetProperty(EFFECT_FLAG_CARD_TARGET)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1,id+o)
e5:SetCountLimit(1,id)
e5:SetCost(s.immcost)
e5:SetTarget(s.immtg)
e5:SetOperation(s.immop)
c:RegisterEffect(e5)
end
function s.mfilter(c)
function s.lkfilter(c)
return c:IsCode(11600024)
end
--
......@@ -36,7 +35,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function s.thfilter(c)
return c:IsSetCard(0x9541) and c:IsAbleToHand()
return c:IsSetCard(0x9541) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
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
......@@ -78,7 +77,7 @@ function s.immop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
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:SetType(EFFECT_TYPE_SINGLE)
e1_1:SetRange(LOCATION_MZONE)
......
--枫丹 发条机关·算力增幅器
local s,id,o=GetID()
local s,id=GetID()
function s.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
......@@ -17,7 +17,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetCountLimit(1,id+0)
e3:SetCountLimit(1,id+10000)
e3:SetCost(s.sumcost)
e3:SetTarget(s.sumtg)
e3:SetOperation(s.sumop)
......@@ -49,7 +49,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local cost=te:GetCost()
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
Duel.RaiseEvent(tc,4179255,te,0,tp,tp,Duel.GetCurrentChain())
local c=e:GetHandler()
--activate cost
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
......@@ -68,17 +68,17 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
if not c:IsRelateToEffect(e) then return end
if not c:IsRelateToEffect(e) then return end
local pos=0
if c:IsSummonable(true,nil,1) then pos=pos+POS_FACEUP_ATTACK end
if c:IsMSetable(true,nil,1) then pos=pos+POS_FACEDOWN_DEFENSE end
if c:IsSummonable(true,nil) then pos=pos+POS_FACEUP_ATTACK end
if c:IsMSetable(true,nil) then pos=pos+POS_FACEDOWN_DEFENSE end
if pos==0 then return end
if Duel.SelectPosition(tp,c,pos)==POS_FACEUP_ATTACK then
Duel.PayLPCost(tp,800)
Duel.Summon(tp,c,true,nil,1)
Duel.Summon(tp,c,true,nil)
else
Duel.PayLPCost(tp,800)
Duel.MSet(tp,c,true,nil,1)
Duel.MSet(tp,c,true,nil)
end
end
end
......
--枫丹 攻坚特化型发条机关
local s,id,o=GetID()
local s,id=GetID()
function s.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
......@@ -17,7 +17,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,id+o)
e2:SetCountLimit(1,id+10000)
e2:SetOperation(s.regop)
c:RegisterEffect(e2)
--
......@@ -26,7 +26,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_RELEASE)
e3:SetCountLimit(1,id+2*o)
e3:SetCountLimit(1,id+20000)
e3:SetTarget(s.target2)
e3:SetOperation(s.activate2)
c:RegisterEffect(e3)
......
......@@ -17,7 +17,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,id+o)
e2:SetCountLimit(1,id+10000)
e2:SetOperation(s.regop)
c:RegisterEffect(e2)
--
......@@ -26,7 +26,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_RELEASE)
e3:SetCountLimit(1,id+2*o)
e3:SetCountLimit(1,id+20000)
e3:SetTarget(s.target2)
e3:SetOperation(s.activate2)
c:RegisterEffect(e3)
......
......@@ -115,7 +115,7 @@ function cm.effcon(e,tp,eg,ep,ev,re,r,rp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
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)
local g=Duel.SelectTarget(tp,cm.thfilter2,tp,0,LOCATION_MZONE,1,1,nil)
end
......
......@@ -13,7 +13,7 @@ function c23100061.initial_effect(c)
end
c23100061.named_with_ZhanShuRenXing=true
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
function c23100061.target(e,tp,eg,ep,ev,re,r,rp,chk)
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)
end
end
function c23100063.xthfilter(c)
return c:IsCode(24400005) and c:IsAbleToHand()
return c:IsCode(23100065) and c:IsAbleToHand()
end
function c23100063.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -24,7 +24,7 @@ function c23100085.initial_effect(c)
e2:SetDescription(aux.Stringid(23100085,1))
e2:SetType(EFFECT_TYPE_IGNITION)
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:SetCost(c23100085.xxcost)
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