Commit 11aec1e1 authored by GuGu's avatar GuGu

Update c26504.lua 离场检测修复

parent 9f985647
Pipeline #22541 passed with stage
in 46 seconds
......@@ -11,12 +11,16 @@ function c26504.initial_effect(c)
e1:SetCondition(c26504.condition)
e1:SetOperation(c26504.operation)
c:RegisterEffect(e1)
--search
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_SPSUMMON_COST)
e3:SetOperation(c26504.lvop)
c:RegisterEffect(e3)
--search
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e4:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetCondition(c26504.con)
e4:SetTarget(c26504.tg)
e4:SetOperation(c26504.op)
c:RegisterEffect(e4)
end
function c26504.matfilter(c)
return not c:IsLinkType(TYPE_TOKEN) and c:IsSetCard(0x208)
......@@ -77,17 +81,9 @@ function c26504.gsop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
function c26504.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:GetLocation()~=LOCATION_EXTRA then return end
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e4:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetTarget(c26504.tg)
e4:SetOperation(c26504.op)
c:RegisterEffect(e4)
function c26504.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonLocation(LOCATION_EXTRA) and c:IsPreviousLocation(LOCATION_MZONE)
end
function c26504.shfilter(c)
return c:IsType(TYPE_PENDULUM) and c:IsAbleToHand() and c:GetLevel()%2==0
......
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