Commit 157bf642 authored by wind2009's avatar wind2009

Fix

parent a1e2a805
No preview for this file type
......@@ -80,7 +80,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TODECK,tg,2,0,0)
end
function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetTargetsRelateToChain()
local tg=Duel.GetTargetsRelateToChain():Filter(Card.IsOnField,nil)
if tg:GetCount()>0 then
aux.PlaceCardsOnDeckBottom(tp,tg)
end
......
......@@ -58,7 +58,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
elseif e:GetLabel()==2 then
local g=Duel.GetMatchingGroup(s.adfilter,tp,LOCATION_MZONE,0,nil)
if #g>0 then
if #g>0 then
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -36,7 +36,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp)
return g:IsExists(Card.IsRace,1,nil,RACE_ZOMBIE) and g:IsExists(Card.IsCode,1,nil,97077563)
end
function s.tgfilter1(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
return c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and s.tgfilter1(chkc) 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