Commit 781cc115 authored by salix5's avatar salix5

fix

parent 7eac1f37
...@@ -25,7 +25,10 @@ function c30494314.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -25,7 +25,10 @@ function c30494314.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SelectTarget(tp,c30494314.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c30494314.filter,tp,LOCATION_MZONE,0,1,1,nil)
end end
function c30494314.operation(e,tp,eg,ep,ev,re,r,rp) function c30494314.operation(e,tp,eg,ep,ev,re,r,rp)
if not Duel.RemoveOverlayCard(tp,1,1,1,1,REASON_EFFECT) then return end Duel.Hint(HINT_SELECTMSG,tp,532)
local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT)
if sg:GetCount()==0 then return end
sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -19,12 +19,9 @@ function c59644958.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,12 +19,9 @@ function c59644958.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end
end end
function c59644958.operation(e,tp,eg,ep,ev,re,r,rp) function c59644958.operation(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp,1,REASON_EFFECT) Duel.Hint(HINT_SELECTMSG,tp,532)
local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT)
if sg:GetCount()==0 then return end if sg:GetCount()==0 then return end
if sg:GetCount()>1 then Duel.HintSelection(sg)
Duel.Hint(HINT_SELECTMSG,tp,532)
sg=sg:Select(tp,1,1,nil)
Duel.HintSelection(sg)
end
sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_EFFECT) sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
end end
...@@ -12,12 +12,9 @@ function c69176131.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -12,12 +12,9 @@ function c69176131.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end
end end
function c69176131.activate(e,tp,eg,ep,ev,re,r,rp) function c69176131.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp,1,REASON_EFFECT) Duel.Hint(HINT_SELECTMSG,tp,532)
local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT)
if sg:GetCount()==0 then return end if sg:GetCount()==0 then return end
if sg:GetCount()>1 then Duel.HintSelection(sg)
Duel.Hint(HINT_SELECTMSG,tp,532)
sg=sg:Select(tp,1,1,nil)
Duel.HintSelection(sg)
end
sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_EFFECT) sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
end end
...@@ -13,7 +13,9 @@ function c85839825.initial_effect(c) ...@@ -13,7 +13,9 @@ function c85839825.initial_effect(c)
end end
function c85839825.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c85839825.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_COST) end if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_COST) end
Duel.RemoveOverlayCard(tp,1,0,1,1,REASON_COST) Duel.Hint(HINT_SELECTMSG,tp,532)
local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,0,1,1,nil,tp,1,REASON_COST)
sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c85839825.filter(c) function c85839825.filter(c)
return c:IsFaceup() and c:IsDestructable() return c:IsFaceup() and c:IsDestructable()
......
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