Commit e960a81f authored by wind2009's avatar wind2009

Fix Defense of the Temple

parent eaca4bf4
...@@ -37,11 +37,11 @@ function s.filter2(c,e,tp,m,f,chkf) ...@@ -37,11 +37,11 @@ function s.filter2(c,e,tp,m,f,chkf)
aux.FCheckAdditional=nil aux.FCheckAdditional=nil
return res return res
end end
function s.ffilter(c) function s.ffilter(c,tp)
return aux.IsCodeListed(c,29762407) return aux.IsCodeListed(c,29762407) and c:IsControler(tp)
end end
function s.fcheck(tp,sg,fc) function s.fcheck(tp,sg,fc)
return not sg:IsExists(Card.IsControler,1,nil,1-tp) or sg:IsExists(s.ffilter,1,nil) return not sg:IsExists(Card.IsControler,1,nil,1-tp) or sg:IsExists(s.ffilter,1,nil,tp)
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
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