Commit 6502e317 authored by POLYMER's avatar POLYMER

fix

parent e48261e1
......@@ -120,7 +120,7 @@ end
function c12835102.con62(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=c:GetEquipTarget()
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) or {}
local seq=tc:GetSequence()
local tp=tc:GetControler()
if re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and #g>0 and g:IsContains(tc) then return false end
......
......@@ -42,7 +42,7 @@ end
function c12869010.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12869010,2))
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
......@@ -51,7 +51,6 @@ function c12869010.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(500)
tc:RegisterEffect(e1)
end
local zone={}
local flag={}
for p=0,1 do
......@@ -79,6 +78,7 @@ function c12869010.spop(e,tp,eg,ep,ev,re,r,rp)
sel_zone=sel_zone>>16
end
Duel.SpecialSummon(c,0,tp,sump,false,false,POS_FACEUP,sel_zone)
end
end
function c12869010.costfilter(c)
return c:IsSetCard(0x6a70) and c:IsAbleToGraveAsCost()
......
......@@ -42,7 +42,7 @@ end
function c12869015.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12869015,2))
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -54,7 +54,6 @@ function c12869015.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
tc:RegisterEffect(e2)
end
local zone={}
local flag={}
for p=0,1 do
......@@ -82,6 +81,7 @@ function c12869015.spop(e,tp,eg,ep,ev,re,r,rp)
sel_zone=sel_zone>>16
end
Duel.SpecialSummon(c,0,tp,sump,false,false,POS_FACEUP,sel_zone)
end
end
function c12869015.costfilter(c)
return c:IsSetCard(0x6a70) and c:IsAbleToRemoveAsCost()
......
......@@ -42,7 +42,7 @@ end
function c12869020.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12869020,2))
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -52,7 +52,6 @@ function c12869020.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c12869020.efilter)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
tc:RegisterEffect(e1)
end
local zone={}
local flag={}
for p=0,1 do
......@@ -80,6 +79,7 @@ function c12869020.spop(e,tp,eg,ep,ev,re,r,rp)
sel_zone=sel_zone>>16
end
Duel.SpecialSummon(c,0,tp,sump,false,false,POS_FACEUP,sel_zone)
end
end
function c12869020.efilter(e,te)
local c=e:GetHandler()
......
......@@ -78,6 +78,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetCondition(cm.slcon)
e1:SetOperation(cm.slop)
Duel.RegisterEffect(e1,tp)
......
......@@ -78,6 +78,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetCondition(cm.slcon)
e1:SetOperation(cm.slop)
Duel.RegisterEffect(e1,tp)
......
......@@ -53,6 +53,9 @@ function s.initial_effect(c)
e6:SetValue(s.efilter)
c:RegisterEffect(e6)
end
function s.efilter(e,te)
return te:IsActiveType(TYPE_SPELL+TYPE_TRAP)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
......@@ -98,7 +101,7 @@ function s.thcon2(e,tp,eg,ep,ev,re,r,rp)
and (c:GetPreviousSequence()~=c:GetSequence() or c:GetPreviousControler()~=tp)
end
function s.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_SPELL+TYPE_TRAP+TYPE_MONSTER) end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,1,nil,TYPE_SPELL+TYPE_TRAP+TYPE_MONSTER) end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(500)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500)
......@@ -108,7 +111,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,d,REASON_EFFECT)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
local g=Duel.SelectMatchingCard(tp,Card.IsType,tp,0,LOCATION_ONFIELD,1,1,nil,TYPE_SPELL+TYPE_TRAP+TYPE_MONSTER)
local g=Duel.SelectMatchingCard(tp,Card.IsType,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,1,1,nil,TYPE_SPELL+TYPE_TRAP+TYPE_MONSTER)
if g:GetCount()>0 then
Duel.Overlay(c,g)
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