Commit 062481f4 authored by GuGu's avatar GuGu

Update c27038.lua

parent f343ba41
Pipeline #27260 passed with stage
in 21 seconds
......@@ -36,6 +36,7 @@ function c27038.initial_effect(c)
local e3b=e2b:Clone()
e3b:SetRange(LOCATION_GRAVE)
e3b:SetCondition(c27038.bdcon2)
e3b:SetTarget(c27038.bdtg2)
e3b:SetOperation(c27038.bdop2)
c:RegisterEffect(e3b)
......@@ -51,6 +52,7 @@ function c27038.initial_effect(c)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetRange(LOCATION_GRAVE)
e5:SetCondition(aux.exccon)
e5:SetTarget(c27038.dmtg5)
e5:SetOperation(c27038.dmop5)
c:RegisterEffect(e5)
......@@ -59,12 +61,13 @@ function c27038.initial_effect(c)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e6:SetCategory(CATEGORY_DAMAGE)
e6:SetCode(EVENT_TO_GRAVE)
e6:SetRange(LOCATION_SZONE+LOCATION_GRAVE)
e6:SetRange(LOCATION_SZONE)
e6:SetTarget(c27038.dmtg3)
e6:SetOperation(c27038.dmop3)
c:RegisterEffect(e6)
local e7=e6:Clone()
e7:SetRange(LOCATION_GRAVE)
e7:SetCondition(aux.exccon)
e7:SetTarget(c27038.dmtg6)
e7:SetOperation(c27038.dmop6)
c:RegisterEffect(e7)
......@@ -119,7 +122,8 @@ end
function c27038.dmcon4(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsExists(c27038.dfilter,1,nil)
return tg and tg:IsExists(c27038.dfilter,1,nil) and Duel.IsChainDisablable(ev)
and (Duel.GetTurnCount()~=e:GetHandler():GetTurnID() or e:GetHandler():IsReason(REASON_RETURN))
end
function c27038.dmtg4(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -143,6 +147,11 @@ function c27038.bdcon(e,tp,eg,ep,ev,re,r,rp)
local ec=eg:GetFirst()
return ec:IsFaceup() and ec:IsControler(tp) and ec:IsSetCard(0x242)
end
function c27038.bdcon2(e,tp,eg,ep,ev,re,r,rp)
local ec=eg:GetFirst()
return ec:IsFaceup() and ec:IsControler(tp) and ec:IsSetCard(0x242)
and (Duel.GetTurnCount()~=e:GetHandler():GetTurnID() or e:GetHandler():IsReason(REASON_RETURN))
end
function c27038.bdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1600)
......
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