Commit ba70ca17 authored by mercury233's avatar mercury233 Committed by DailyShana

fix Greedy Venom Fusion Dragon (#719)

parent c9ca2b09
...@@ -42,10 +42,10 @@ function c51570882.disfilter(c) ...@@ -42,10 +42,10 @@ function c51570882.disfilter(c)
return c:IsFaceup() and not (c:GetAttack()==0 and c:IsDisabled()) return c:IsFaceup() and not (c:GetAttack()==0 and c:IsDisabled())
end end
function c51570882.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c51570882.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c51570882.disfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c51570882.disfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c51570882.disfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c51570882.disfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c51570882.disfilter,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c51570882.disfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0)
end end
function c51570882.disop(e,tp,eg,ep,ev,re,r,rp) function c51570882.disop(e,tp,eg,ep,ev,re,r,rp)
......
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