Commit d8b3a1e2 authored by Amiya's avatar Amiya

修复

parent 0452a556
...@@ -49,7 +49,7 @@ function s.rlcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function s.rlcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.rlcfilter,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) and not c:IsImmuneToEffect(e)
end end
function s.gcheck(g,tp) function s.gcheck(g,tp)
return (g:GetClassCount(Card.GetRace)==1 or g:GetClassCount(Card.GetAttribute)==1) return (g:GetClassCount(Card.GetRace)==1 or g:GetClassCount(Card.GetAttribute)==1)
...@@ -69,9 +69,12 @@ function s.atkfilter(c,g) ...@@ -69,9 +69,12 @@ function s.atkfilter(c,g)
sg:Sub(Group.FromCards(c)) sg:Sub(Group.FromCards(c))
return sg:FilterCount(Card.IsReleasable,nil)==2 return sg:FilterCount(Card.IsReleasable,nil)==2
end end
function s.crlfilteer(c,e)
return c:IsRelateToEffect(e) and c:IsFaceup() and not c:IsImmuneToEffect(e)
end
function s.rlop(e,tp,eg,ep,ev,re,r,rp) 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(s.crlfilteer,nil,e)
if tg:GetCount()~=3 then return end if tg:GetCount()~=3 then return end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,3)) 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)
......
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