Commit 18e60086 authored by REIKAI's avatar REIKAI 💬

bug fix

parent 4ca77007
Pipeline #23893 passed with stage
in 24 minutes and 10 seconds
......@@ -15,7 +15,7 @@ function c16400081.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetRange(LOCATION_FZONE)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,16400281)
e2:SetCountLimit(1,16400181)
e2:SetCondition(c16400081.spcon)
e2:SetTarget(c16400081.sptg)
e2:SetOperation(c16400081.spop)
......
......@@ -13,7 +13,6 @@ function c16400097.initial_effect(c)
--todeck
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
......@@ -50,7 +49,7 @@ function c16400097.filter(c)
return c:IsSetCard(0xce2) and c:IsAbleToDeck()
end
function c16400097.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c16400097.filter(chkc) end
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c16400097.filter,tp,LOCATION_GRAVE,0,4,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c16400097.filter,tp,LOCATION_GRAVE,0,4,4,nil)
......
--向导兵器-兰斯洛特
function c16400098.initial_effect(c)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0xce1),2,4)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0xce2),2,4)
c:EnableReviveLimit()
--to grave
local e1=Effect.CreateEffect(c)
......
......@@ -3,7 +3,8 @@ function c16400099.initial_effect(c)
--copy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(16400099,1))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1,16400099)
e1:SetCost(c16400099.cpcost)
e1:SetTarget(c16400099.cptg)
......@@ -13,6 +14,7 @@ function c16400099.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DRAW+CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_GRAVE)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCountLimit(1,16400199)
......@@ -30,7 +32,8 @@ function c16400099.cpfilter(c,exc,e,tp,eg,ep,ev,re,r,rp)
end
function c16400099.cpcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c16400099.cpfilter,tp,LOCATION_HAND,0,1,nil,c,e,tp,eg,ep,ev,re,r,rp) end
if chk==0 then return c:IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c16400099.cpfilter,tp,LOCATION_HAND,0,1,nil,c,e,tp,eg,ep,ev,re,r,rp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c16400099.cpfilter,tp,LOCATION_HAND,0,1,1,nil,c,e,tp,eg,ep,ev,re,r,rp)
local te=g:GetFirst():CheckActivateEffect(true,true,false)
......@@ -76,8 +79,9 @@ function c16400099.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,ct)
end
function c16400099.activate(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0)
if Duel.Draw(p,ct,REASON_EFFECT)==ct then
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
if Duel.Draw(p,d,REASON_EFFECT)==ct then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_AVOID_BATTLE_DAMAGE)
......
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