Commit 07d7b758 authored by DailyShana's avatar DailyShana

Merge pull request #397 from nekrozar/patch-6

fix D.D. Trap Hole
parents 2e9e30ba 55aa5903
...@@ -18,13 +18,13 @@ function c5606466.initial_effect(c) ...@@ -18,13 +18,13 @@ function c5606466.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c5606466.filter(c,e,tp) function c5606466.filter(c,e,tp)
return c:IsFacedown() and c:GetReasonPlayer()==tp and c:IsCanBeEffectTarget(e) and c:IsDestructable() and c:IsAbleToRemove() return c:IsPosition(POS_FACEDOWN_DEFENCE) and c:GetReasonPlayer()==tp and c:IsCanBeEffectTarget(e) and c:IsDestructable() and c:IsAbleToRemove()
end end
function c5606466.filter2(c,e) function c5606466.filter2(c,e)
return c:IsDestructable() and c:IsAbleToRemove() and c:IsCanBeEffectTarget(e) return c:IsDestructable() and c:IsAbleToRemove() and c:IsCanBeEffectTarget(e)
end end
function c5606466.filter3(c,e,tp) function c5606466.filter3(c,e,tp)
return c:IsFacedown() and c:GetSummonPlayer()==tp and c:IsCanBeEffectTarget(e) and c:IsDestructable() and c:IsAbleToRemove() return c:IsPosition(POS_FACEDOWN_DEFENCE) and c:GetSummonPlayer()==tp and c:IsCanBeEffectTarget(e) and c:IsDestructable() and c:IsAbleToRemove()
end end
function c5606466.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c5606466.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false 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