Commit 10e35135 authored by salix5's avatar salix5

fix DR02-C

parent 151894ec
...@@ -11,7 +11,7 @@ function c30683373.initial_effect(c) ...@@ -11,7 +11,7 @@ function c30683373.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c30683373.filter(c) function c30683373.filter(c)
return not c:IsAttackPos() return c:IsDefensePos()
end end
function c30683373.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c30683373.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_MZONE and c30683373.filter(chkc) end if chkc then return chkc:GetLocation()==LOCATION_MZONE and c30683373.filter(chkc) end
...@@ -22,7 +22,7 @@ function c30683373.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -22,7 +22,7 @@ function c30683373.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c30683373.activate(e) function c30683373.activate(e)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsRelateToEffect(e) and tc:IsDefensePos() then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
...@@ -22,7 +22,7 @@ function c674561.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -22,7 +22,7 @@ function c674561.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c674561.activate(e,tp,eg,ep,ev,re,r,rp) function c674561.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 tc:IsAttribute(ATTRIBUTE_DARK) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,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