Commit f6911e7c authored by GuGu's avatar GuGu

Update c27038.lua 对象问题

parent 062481f4
Pipeline #27323 passed with stage
in 26 seconds
......@@ -76,7 +76,7 @@ function c27038.cofilter(c)
return c:GetCode()==27039 and c:IsFaceup() and not c:IsDisabled() and not c:IsStatus(STATUS_CHAINING)
end
function c27038.cfilter(c)
return c:IsSetCard(0x242)
return c:IsSetCard(0x242) and c:IsType(TYPE_MONSTER)
end
function c27038.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c27038.cofilter,tp,LOCATION_SZONE,0,1,nil) or Duel.CheckReleaseGroupEx(tp,c27038.cfilter,1,REASON_COST,true,nil) end
......@@ -85,10 +85,11 @@ function c27038.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST)
end
function c27038.dfilter(c)
return c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsSetCard(0x242)
return c:IsFaceup() and c:IsSetCard(0x242) and c:IsType(TYPE_MONSTER)
end
function c27038.condition(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
if ep==tp then return end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsExists(c27038.dfilter,1,nil) and Duel.IsChainDisablable(ev)
end
......@@ -103,7 +104,7 @@ function c27038.dmop1(e,tp,eg,ep,ev,re,r,rp)
end
end
function c27038.check(c,tp)
return c and c:IsControler(tp) and c:IsSetCard(0x242)
return c and c:IsSetCard(0x242) and c:IsType(TYPE_MONSTER) -- and c:IsControler(tp)
end
function c27038.dmtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return (c27038.check(Duel.GetAttacker(),tp) or c27038.check(Duel.GetAttackTarget(),tp)) end
......@@ -121,8 +122,9 @@ function c27038.dmop3(e,tp,eg,ep,ev,re,r,rp)
end
function c27038.dmcon4(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
if ep==tp then return end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsExists(c27038.dfilter,1,nil) and Duel.IsChainDisablable(ev)
return tg and tg:IsExists(c27038.dfilter,1,nil)
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)
......@@ -145,11 +147,11 @@ function c27038.dmop6(e,tp,eg,ep,ev,re,r,rp)
end
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)
return ec:IsFaceup() and ec:IsSetCard(0x242) and ec:IsType(TYPE_MONSTER) -- and ec:IsControler(tp)
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)
return ec:IsFaceup() and ec:IsSetCard(0x242) and ec:IsType(TYPE_MONSTER) -- and ec:IsControler(tp)
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)
......
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