Commit 41c2b725 authored by argon.sun's avatar argon.sun

fix

parent e55c1204
...@@ -33,11 +33,12 @@ function c47766694.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -33,11 +33,12 @@ function c47766694.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c47766694.activate(e,tp,eg,ep,ev,re,r,rp) function c47766694.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0 then if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0 then
local dp=tc:GetControler() local dp=tc:GetControler()
local g=Duel.GetMatchingGroup(Card.IsSSetable,dp,LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(Card.IsSSetable,dp,LOCATION_HAND,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(dp,aux.Stringid(47766694,0)) then if g:GetCount()>0 and Duel.SelectYesNo(dp,aux.Stringid(47766694,0)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,510)
local sg=g:Select(dp,1,1,nil) local sg=g:Select(dp,1,1,nil)
Duel.SSet(dp,sg:GetFirst()) Duel.SSet(dp,sg:GetFirst())
end end
...@@ -60,7 +61,7 @@ function c47766694.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -60,7 +61,7 @@ function c47766694.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c47766694.desop(e,tp,eg,ep,ev,re,r,rp) function c47766694.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
...@@ -73,7 +73,7 @@ function c54578613.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -73,7 +73,7 @@ function c54578613.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c54578613.desop(e,tp,eg,ep,ev,re,r,rp) function c54578613.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
...@@ -26,7 +26,7 @@ function c56399890.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -26,7 +26,7 @@ function c56399890.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c56399890.desop(e,tp,eg,ep,ev,re,r,rp) function c56399890.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
...@@ -40,7 +40,7 @@ function c5975022.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -40,7 +40,7 @@ function c5975022.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c5975022.desop(e,tp,eg,ep,ev,re,r,rp) function c5975022.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
......
...@@ -14,7 +14,7 @@ function c81510157.filter(c) ...@@ -14,7 +14,7 @@ function c81510157.filter(c)
return c:IsFaceup() and c:IsDestructable() return c:IsFaceup() and c:IsDestructable()
end end
function c81510157.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c81510157.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetControler()~=tp and chkc:GetLocation()==LOCAITON_MZONE and c81510157.filter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCAITON_MZONE) and c81510157.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c81510157.filter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c81510157.filter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c81510157.filter,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c81510157.filter,tp,0,LOCATION_MZONE,1,1,nil)
...@@ -23,7 +23,7 @@ function c81510157.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -23,7 +23,7 @@ function c81510157.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c81510157.activate(e,tp,eg,ep,ev,re,r,rp) function c81510157.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Recover(1-tp,1000,REASON_EFFECT) Duel.Recover(1-tp,1000,REASON_EFFECT)
end end
......
...@@ -37,7 +37,7 @@ function c84766279.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -37,7 +37,7 @@ function c84766279.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c84766279.operation(e,tp,eg,ep,ev,re,r,rp) function c84766279.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
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