Commit e03ce3ba authored by oilloillo's avatar oilloillo

fix judge of IsRelateToEffect

fix invaild Loc count
parent 0e537522
......@@ -37,6 +37,7 @@ function M.addEff1(c)
Duel.ConfirmCards(tp, mc)
local c = e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local mg = Group.FromCards(mc, c)
local fg = Duel.GetMatchingGroup(filter, tp, LOCATION_EXTRA, 0, nil, e, tp, mg)
......@@ -80,7 +81,7 @@ function M.addEff2(c)
local function tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk == 0 then
return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and e:GetHandler():IsCanBeSpecialSummoned(e, 0, tp, false, false)
return e:GetHandler():IsCanBeSpecialSummoned(e, 0, tp, false, false)
end
Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, e:GetHandler(), 1, tp, LOCATION_EXTRA)
end
......
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