Commit ac098161 authored by nekrozar's avatar nekrozar
parent 3d23ad7a
...@@ -31,11 +31,12 @@ function c37412656.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -31,11 +31,12 @@ function c37412656.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c37412656.activate(e,tp,eg,ep,ev,re,r,rp) function c37412656.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,c37412656.dfilter,tp,0,LOCATION_MZONE,1,1,nil,tc:GetAttack()) local dg=Duel.SelectMatchingCard(tp,c37412656.dfilter,tp,0,LOCATION_MZONE,1,1,nil,tc:GetAttack())
Duel.Destroy(dg,REASON_EFFECT) if dg:GetCount()>0 then
Duel.BreakEffect()
Duel.Destroy(dg,REASON_EFFECT)
end
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