Commit e34ff269 authored by Mr.Tan's avatar Mr.Tan

Fix DDカウント・サーベイヤー

parent 844825ca
...@@ -42,11 +42,11 @@ function s.initial_effect(c) ...@@ -42,11 +42,11 @@ function s.initial_effect(c)
e4:SetCode(EVENT_SPSUMMON_SUCCESS) e4:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function s.cfilter(c,tp) function s.rlcfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x10af) and c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_PENDULUM) return c:IsFaceup() and c:IsSetCard(0x10af) and c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function s.rlcon(e,tp,eg,ep,ev,re,r,rp) function s.rlcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp) return eg:IsExists(s.rlcfilter,1,nil,tp)
end end
function s.rlfilter(c,e) function s.rlfilter(c,e)
return c:IsFaceup() and c:IsCanBeEffectTarget(e) return c:IsFaceup() and c:IsCanBeEffectTarget(e)
...@@ -73,7 +73,7 @@ function s.rlop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,7 +73,7 @@ function s.rlop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local tg=g:Filter(Card.IsRelateToEffect,nil,e):Filter(Card.IsFaceup,nil) local tg=g:Filter(Card.IsRelateToEffect,nil,e):Filter(Card.IsFaceup,nil)
if tg:GetCount()~=3 then return end if tg:GetCount()~=3 then return end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,2)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,3))
local sg=tg:FilterSelect(tp,s.atkfilter,1,1,nil,g) local sg=tg:FilterSelect(tp,s.atkfilter,1,1,nil,g)
if sg:GetCount()>0 then if sg:GetCount()>0 then
tg:Sub(sg) tg:Sub(sg)
......
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