Commit 81604b4f authored by VanillaSalt's avatar VanillaSalt

fix

parent 2fe7f909
...@@ -22,6 +22,7 @@ function c52035300.initial_effect(c) ...@@ -22,6 +22,7 @@ function c52035300.initial_effect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetCode(EVENT_PHASE+PHASE_STANDBY) e3:SetCode(EVENT_PHASE+PHASE_STANDBY)
e3:SetRange(LOCATION_GRAVE) e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1)
e3:SetCondition(c52035300.condition) e3:SetCondition(c52035300.condition)
e3:SetTarget(c52035300.target) e3:SetTarget(c52035300.target)
e3:SetOperation(c52035300.operation) e3:SetOperation(c52035300.operation)
......
...@@ -7,6 +7,7 @@ function c5592689.initial_effect(c) ...@@ -7,6 +7,7 @@ function c5592689.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_GRAVE) e1:SetRange(LOCATION_GRAVE)
e1:SetCountLimit(1)
e1:SetCondition(c5592689.sscon) e1:SetCondition(c5592689.sscon)
e1:SetTarget(c5592689.sstg) e1:SetTarget(c5592689.sstg)
e1:SetOperation(c5592689.ssop) e1:SetOperation(c5592689.ssop)
......
...@@ -13,6 +13,7 @@ function c564541.initial_effect(c) ...@@ -13,6 +13,7 @@ function c564541.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1)
e2:SetCondition(c564541.spcon) e2:SetCondition(c564541.spcon)
e2:SetTarget(c564541.sptg) e2:SetTarget(c564541.sptg)
e2:SetOperation(c564541.spop) e2:SetOperation(c564541.spop)
......
...@@ -15,6 +15,7 @@ function c7304544.initial_effect(c) ...@@ -15,6 +15,7 @@ function c7304544.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1)
e2:SetCondition(c7304544.condition) e2:SetCondition(c7304544.condition)
e2:SetTarget(c7304544.target) e2:SetTarget(c7304544.target)
e2:SetOperation(c7304544.operation) e2:SetOperation(c7304544.operation)
......
...@@ -34,6 +34,7 @@ function c80666118.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,6 +34,7 @@ function c80666118.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c80666118.desop(e,tp,eg,ep,ev,re,r,rp) function c80666118.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
local g=Duel.GetMatchingGroup(c80666118.filter,tp,LOCATION_MZONE,LOCATION_MZONE,c,c:GetAttack()) local g=Duel.GetMatchingGroup(c80666118.filter,tp,LOCATION_MZONE,LOCATION_MZONE,c,c:GetAttack())
local ct=Duel.Destroy(g,REASON_EFFECT) local ct=Duel.Destroy(g,REASON_EFFECT)
if ct>0 then if ct>0 then
......
...@@ -78,7 +78,10 @@ function c89544521.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,7 +78,10 @@ function c89544521.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c89544521.desfilter2(c) function c89544521.desfilter2(c)
return c:IsFaceup() and c:IsSetCard(0xab) and c:IsDestructable() return c:IsFaceup() and c:IsSetCard(0xab) and c:IsDestructable()
and Duel.IsExistingTarget(Card.IsDestructable,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) and Duel.IsExistingTarget(c89544521.desfilter3,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end
function c89544521.desfilter3(c)
return c:IsFaceup() and c:IsDestructable()
end end
function c89544521.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c89544521.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
...@@ -86,7 +89,7 @@ function c89544521.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -86,7 +89,7 @@ function c89544521.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g1=Duel.SelectTarget(tp,c89544521.desfilter2,tp,LOCATION_ONFIELD,0,1,1,nil) local g1=Duel.SelectTarget(tp,c89544521.desfilter2,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g2=Duel.SelectTarget(tp,Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,g1:GetFirst()) local g2=Duel.SelectTarget(tp,c89544521.desfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,g1:GetFirst())
g1:Merge(g2) g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0)
end 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