Commit 07a0c340 authored by Amiya's avatar Amiya

修复

parent 1214ef70
Pipeline #41258 passed with stages
in 2 minutes and 16 seconds
...@@ -83,6 +83,7 @@ function s.eqlimit(e,c) ...@@ -83,6 +83,7 @@ function s.eqlimit(e,c)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
...@@ -97,6 +98,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,6 +98,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(s.eqlimit) e1:SetValue(s.eqlimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end
if c:IsOnField() and not c:GetEquipTarget() then
c:CancelToGrave(false)
end
end end
function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return e:GetHandler():GetEquipTarget() end if chk==0 then return e:GetHandler():GetEquipTarget() 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