Commit 0eb7f3cf authored by DailyShana's avatar DailyShana

fix

parent 46c0e5af
...@@ -7,6 +7,7 @@ function c26084285.initial_effect(c) ...@@ -7,6 +7,7 @@ function c26084285.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(c26084285.condition) e1:SetCondition(c26084285.condition)
e1:SetCost(c26084285.cost) e1:SetCost(c26084285.cost)
e1:SetTarget(c26084285.target) e1:SetTarget(c26084285.target)
......
...@@ -21,6 +21,7 @@ function c58577036.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,6 +21,7 @@ function c58577036.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK)
end end
function c58577036.operation(e,tp,eg,ep,ev,re,r,rp) function c58577036.operation(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanSpecialSummon(tp) then return end
Duel.Hint(HINT_SELECTMSG,1-tp,567) Duel.Hint(HINT_SELECTMSG,1-tp,567)
local lv=Duel.AnnounceNumber(1-tp,1,2,3,4,5,6,7,8,9,10,11,12) local lv=Duel.AnnounceNumber(1-tp,1,2,3,4,5,6,7,8,9,10,11,12)
local g=Duel.GetMatchingGroup(Card.IsSummonableCard,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(Card.IsSummonableCard,tp,LOCATION_DECK,0,nil)
......
...@@ -7,6 +7,7 @@ function c67688478.initial_effect(c) ...@@ -7,6 +7,7 @@ function c67688478.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(c67688478.condition) e1:SetCondition(c67688478.condition)
e1:SetCost(c67688478.cost) e1:SetCost(c67688478.cost)
e1:SetTarget(c67688478.target) e1:SetTarget(c67688478.target)
......
...@@ -67,7 +67,7 @@ end ...@@ -67,7 +67,7 @@ end
function c83319610.mtop(e,tp,eg,ep,ev,re,r,rp) function c83319610.mtop(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()==0 or not e:GetHandler():IsRelateToEffect(e) then return end if e:GetLabel()==0 or not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or tc:IsFacedown() or tc:IsImmuneToEffect(e) then return end if not tc:IsRelateToEffect(e) or tc:IsImmuneToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,c83319610.filter2,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,tc,e) local g=Duel.SelectMatchingCard(tp,c83319610.filter2,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,tc,e)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -15,7 +15,8 @@ function c89086566.cfilter(c) ...@@ -15,7 +15,8 @@ function c89086566.cfilter(c)
return c:IsFaceup() and (code==40640057 or code==40703223) and c:IsDestructable() return c:IsFaceup() and (code==40640057 or code==40703223) and c:IsDestructable()
end end
function c89086566.target(e,tp,eg,ep,ev,re,r,rp,chk) function c89086566.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c89086566.cfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c89086566.cfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(c89086566.cfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(c89086566.cfilter,tp,LOCATION_MZONE,0,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
...@@ -24,7 +25,7 @@ function c89086566.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,7 +25,7 @@ function c89086566.activate(e,tp,eg,ep,ev,re,r,rp)
local dt=Duel.Destroy(g,REASON_EFFECT) local dt=Duel.Destroy(g,REASON_EFFECT)
if dt==0 then return end if dt==0 then return end
local dg=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_ONFIELD,nil) local dg=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_ONFIELD,nil)
if dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(89086566,0)) then if dg:GetCount()>0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=dg:Select(tp,1,dt,nil) local sg=dg:Select(tp,1,dt,nil)
......
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