Commit 40996050 authored by nekrozar's avatar nekrozar Committed by DailyShana

fix Swords at Dawn (#464)

parent 47793e3f
...@@ -31,8 +31,12 @@ function c25067275.ecfilter(c) ...@@ -31,8 +31,12 @@ function c25067275.ecfilter(c)
end end
function c25067275.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c25067275.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then
and Duel.IsExistingTarget(c25067275.ecfilter,tp,LOCATION_GRAVE,0,1,nil) end if not Duel.IsExistingTarget(c25067275.ecfilter,tp,LOCATION_GRAVE,0,1,nil) then return false end
if e:GetHandler():IsLocation(LOCATION_HAND) then
return Duel.GetLocationCount(tp,LOCATION_SZONE)>1
else return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(25067275,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(25067275,0))
local g=Duel.SelectTarget(tp,c25067275.ecfilter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,c25067275.ecfilter,tp,LOCATION_GRAVE,0,1,1,nil)
local ec=g:GetFirst() local ec=g:GetFirst()
......
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