Commit 2c8a84a8 authored by argon's avatar argon

fix

parent 80f8e0ff
...@@ -41,8 +41,7 @@ function c23454876.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,8 +41,7 @@ function c23454876.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(p,d,REASON_EFFECT) Duel.Draw(p,d,REASON_EFFECT)
end end
function c23454876.damcon(e,tp,eg,ep,ev,re,r,rp) function c23454876.damcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsDisabled() return e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,51960178)
and e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,51960178)
end end
function c23454876.damcost(e,tp,eg,ep,ev,re,r,rp,chk) function c23454876.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
--CNo.106 溶岩掌ジャイアント・ハンド・レッド
function c55888045.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,5),3)
c:EnableReviveLimit()
--Negate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(55888045,0))
e1:SetCategory(CATEGORY_NEGATE)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_F)
e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c55888045.negcon)
e1:SetOperation(c55888045.negop)
c:RegisterEffect(e1)
end
function c55888045.negcon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return (loc==LOCATION_SZONE or loc==LOCATION_MZONE) and not e:GetHandler():IsStatus(STATUS_CHAINING)
and e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x48)
end
function c55888045.filter(c)
return c:IsFaceup() and (c:IsLocation(LOCATION_SZONE) or c:IsType(TYPE_EFFECT))
end
function c55888045.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or Duel.GetCurrentChain()~=ev+1 or not c:RemoveOverlayCard(tp,1,1,REASON_EFFECT) then return end
local g=Duel.GetMatchingGroup(c55888045.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c)
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2)
tc=g:GetNext()
end
end
...@@ -48,8 +48,7 @@ function c66970002.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,8 +48,7 @@ function c66970002.tdop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c66970002.descon(e,tp,eg,ep,ev,re,r,rp) function c66970002.descon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsDisabled() return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x7f)
and e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x7f)
end end
function c66970002.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c66970002.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
...@@ -48,8 +48,7 @@ function c85121942.damop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,8 +48,7 @@ function c85121942.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,d,REASON_EFFECT) Duel.Damage(p,d,REASON_EFFECT)
end end
function c85121942.descon(e,tp,eg,ep,ev,re,r,rp) function c85121942.descon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsDisabled() return e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,59627393)
and e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,59627393)
end end
function c85121942.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c85121942.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
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