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