Commit 2e0de45b authored by POLYMER's avatar POLYMER

fix

parent e833691d
...@@ -94,10 +94,11 @@ function s.e3tg(e, tp, eg, ep, ev, re, r, rp, chk, chkc) ...@@ -94,10 +94,11 @@ function s.e3tg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
end end
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_FACEUP)
local tc = Duel.SelectTarget(tp, function(tc)
local g = Duel.SelectTarget(tp, function(tc)
return s.XiGundam(tc) and tc:IsFaceup() return s.XiGundam(tc) and tc:IsFaceup()
and Duel.IsExistingMatchingCard(s.eqfilter, tp, LOCATION_DECK, 0, 1, nil, tc, tp) and Duel.IsExistingMatchingCard(s.eqfilter, tp, LOCATION_DECK, 0, 1, nil, tc, tp)
end, tp, LOCATION_MZONE, 0, 1, nil) end, tp, LOCATION_MZONE, 0, 1, 1, nil)
Duel.SetOperationInfo(0, CATEGORY_EQUIP, nil, 1, tp, LOCATION_DECK) Duel.SetOperationInfo(0, CATEGORY_EQUIP, nil, 1, tp, LOCATION_DECK)
end end
...@@ -109,7 +110,7 @@ function s.e3op(e, tp, eg, ep, ev, re, r, rp) ...@@ -109,7 +110,7 @@ function s.e3op(e, tp, eg, ep, ev, re, r, rp)
local tc = Duel.GetFirstTarget() local tc = Duel.GetFirstTarget()
if Duel.GetLocationCount(tp, LOCATION_SZONE) <= 0 then return end if Duel.GetLocationCount(tp, LOCATION_SZONE) <= 0 then return end
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_EQUIP)
local g = Duel.SelectMatchingCard(tp, s.eqfilter, tp, LOCATION_DECK, 0, 1, 1, nil, tc, tp) local g = Duel.SelectMatchingCard(tp, s.eqfilter, tp, LOCATION_DECK, 0, 1, 1, nil, tc, tp)
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