Commit b9a10d73 authored by POLYMER's avatar POLYMER

fix

parent b328ad94
......@@ -309,7 +309,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
GetID=function()
return _G["c"..int],int,int<100000000 and 1 or 100
end
if pcall(function() dofile("expansions/script/c"..int..".lua") end) or pcall(function() dofile("script/c"..int..".lua") end) then
if pcall(function() Duel.LoadScript("c"..int..".lua") end) then
_G["c"..int]=nil
local bool,token=pcall(Duel.CreateToken,tp,int)
if bool and not token:IsType(TYPE_TOKEN) then
......@@ -387,7 +387,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
GetID=function()
return _G["c"..int],int,int<100000000 and 1 or 100
end
if pcall(function() dofile("expansions/script/c"..int..".lua") end) or pcall(function() dofile("script/c"..int..".lua") end) then
if pcall(function() Duel.LoadScript("c"..int..".lua") end) then
_G["c"..int]=nil
local bool,token=pcall(Duel.CreateToken,1-tp,int)
if bool and not token:IsType(TYPE_TOKEN) then
......
......@@ -61,7 +61,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local mg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE,0,nil,e)
if chk==0 then return mg:CheckSubGroup(s.fselect,1,#mg,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=mg:SelectSubGroup(tp,s.fselect,false,2,2,e,tp)
local g=mg:SelectSubGroup(tp,s.fselect,false,1,#mg,e,tp)
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,g:GetCount(),0,0)
......
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