Commit 7f0f6bf6 authored by wind2009's avatar wind2009

Fix Sunset Beat

②效果不能选择不能成为对象的卡
parent 86c76cd3
Pipeline #25153 passed with stages
in 59 seconds
...@@ -49,16 +49,16 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,16 +49,16 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
function s.cfilter2(c,tp) function s.cfilter2(c,tp,e)
return c:IsPreviousPosition(POS_FACEDOWN) and c:IsFaceup() and c:IsControler(tp) and c:IsType(TYPE_FLIP) return c:IsPreviousPosition(POS_FACEDOWN) and c:IsFaceup() and c:IsControler(tp) and c:IsType(TYPE_FLIP) and c:IsCanBeEffectTarget(e)
end end
function s.damcon(e,tp,eg,ep,ev,re,r,rp) function s.damcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter2,1,nil,tp) return eg:IsExists(s.cfilter2,1,nil,tp)
end end
function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return eg:IsContains(chkc) and chkc:IsPreviousControler(tp) if chkc then return eg:IsContains(chkc) and chkc:IsPreviousControler(tp)
and chkc:IsPreviousLocation(LOCATION_MZONE) and cfilter2(chkc,tp) end and chkc:IsPreviousLocation(LOCATION_MZONE) and s.cfilter2(chkc,tp,e) end
local g=eg:Filter(s.cfilter2,nil,tp) local g=eg:Filter(s.cfilter2,nil,tp,e)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE) and #g>0 end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE) and #g>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
......
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