Commit 74d0566c authored by REIKAI's avatar REIKAI 💬

fix bugs

parent 870308d9
No preview for this file type
expansions/pics/30683420.jpg

58.4 KB | W: | H:

expansions/pics/30683420.jpg

60.8 KB | W: | H:

expansions/pics/30683420.jpg
expansions/pics/30683420.jpg
expansions/pics/30683420.jpg
expansions/pics/30683420.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50218117.jpg

78.7 KB | W: | H:

expansions/pics/50218117.jpg

69.6 KB | W: | H:

expansions/pics/50218117.jpg
expansions/pics/50218117.jpg
expansions/pics/50218117.jpg
expansions/pics/50218117.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50218670.jpg

82.2 KB | W: | H:

expansions/pics/50218670.jpg

74 KB | W: | H:

expansions/pics/50218670.jpg
expansions/pics/50218670.jpg
expansions/pics/50218670.jpg
expansions/pics/50218670.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -54,7 +54,7 @@ function cm.sumaddcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function cm.sumaddcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end end
function cm.chtg2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.chtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return true end
local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsCanTurnSet,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0)
end end
......
...@@ -7,7 +7,22 @@ local Version_Number=20231002 ...@@ -7,7 +7,22 @@ local Version_Number=20231002
local tcode=0x364 local tcode=0x364
--Instructions about how to use this --Instructions about how to use this
--[[ --[[
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的纹章 --统合骑士团的纹章
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的试炼之地 --统合骑士团的试炼之地
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 双剑骑士 --统合骑士团 双剑骑士
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的冒险者 --统合骑士团的冒险者
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 笃实骑士 --统合骑士团 笃实骑士
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团新兵 --统合骑士团新兵
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 应征剑士 --统合骑士团 应征剑士
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 应征战士 --统合骑士团 应征战士
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 贯志射手 --统合骑士团 贯志射手
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 寒冰骑士 --统合骑士团 寒冰骑士
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的使者 --统合骑士团的使者
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 暮色奇兵 --统合骑士团 暮色奇兵
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 鹰眼看守长 --统合骑士团 鹰眼看守长
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 盗贼队长 --统合骑士团 盗贼队长
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 献身的少女 --统合骑士团 献身的少女
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 天平守护者 --统合骑士团 天平守护者
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 正义骑士 --统合骑士团 正义骑士
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的翠风 --统合骑士团的翠风
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的紫华 --统合骑士团的紫华
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 见习枪兵 --统合骑士团 见习枪兵
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 螺旋骑士 --统合骑士团 螺旋骑士
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 枪兵队长 --统合骑士团 枪兵队长
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的巨龙 --统合骑士团的巨龙
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团之盾 --统合骑士团之盾
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的药师 --统合骑士团的药师
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 圣殿之枪 --统合骑士团 圣殿之枪
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的紫衣 --统合骑士团的紫衣
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的暴啮模龙 --统合骑士团的暴啮模龙
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团之傲 --统合骑士团之傲
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的见习勇者 --统合骑士团的见习勇者
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 统合圣剑 --统合骑士团 统合圣剑
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团 骑士枪盾 --统合骑士团 骑士枪盾
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
......
--统合骑士团的棱镜 --统合骑士团的棱镜
Duel.LoadScript("c23000400") if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c23000400") end) then require("script/c23000400") end
local m1=23000400 local m1=23000400
local bm = _G["c"..m1] local bm = _G["c"..m1]
local tcode=0x364 local tcode=0x364
local m=23000450 local m=23000701
local cm = _G["c"..m] local cm = _G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
......
...@@ -9,6 +9,7 @@ function cm.initial_effect(c) ...@@ -9,6 +9,7 @@ function cm.initial_effect(c)
aux.AddCodeList(c,30611025) aux.AddCodeList(c,30611025)
fgo.spsumselfex(c,m,30611005,30611025) fgo.spsumselfex(c,m,30611005,30611025)
fgo.spsumgrail(c,cm.level_base_side,cm.level_rejuvenation_side,0,cm.sumcost) fgo.spsumgrail(c,cm.level_base_side,cm.level_rejuvenation_side,0,cm.sumcost)
fgo.spsum(c,RACE_DRAGON+RACE_SPELLCASTER,cm.level_base_side,cm.level_rejuvenation_side,0,0)
fgo.spsumline(c,m)--召唤台词 fgo.spsumline(c,m)--召唤台词
fgo.effect1(c,m,EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O,CATEGORY_TOHAND+CATEGORY_SEARCH,EVENT_SPSUMMON_SUCCESS,0,0,cm.thtg,cm.thop,0,EFFECT_FLAG_DELAY,m,0,0) fgo.effect1(c,m,EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O,CATEGORY_TOHAND+CATEGORY_SEARCH,EVENT_SPSUMMON_SUCCESS,0,0,cm.thtg,cm.thop,0,EFFECT_FLAG_DELAY,m,0,0)
fgo.effect2(c,m,EFFECT_TYPE_IGNITION,CATEGORY_TOHAND,0,cm.cost,cm.con,cm.tg,cm.op,0,0,1,0,0) fgo.effect2(c,m,EFFECT_TYPE_IGNITION,CATEGORY_TOHAND,0,cm.cost,cm.con,cm.tg,cm.op,0,0,1,0,0)
......
--晶导算使 逻辑或门 --晶导算使 逻辑或门
if not require and loadfile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=loadfile(str)
else
require_list[str]=loadfile(str..".lua")
end
require_list[str]()
return require_list[str]
end
return require_list[str]
end
end
xpcall(function() require("expansions/script/c33201401") end,function() require("script/c33201401") end) xpcall(function() require("expansions/script/c33201401") end,function() require("script/c33201401") end)
function c33201407.initial_effect(c) function c33201407.initial_effect(c)
--pendulum summon --pendulum summon
...@@ -71,12 +86,12 @@ function c33201407.scop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,12 +86,12 @@ function c33201407.scop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LSCALE) e1:SetCode(EFFECT_CHANGE_LSCALE)
e1:SetValue(0) e1:SetValue(0)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_RSCALE) e2:SetCode(EFFECT_CHANGE_RSCALE)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
-- --
......
...@@ -46,16 +46,16 @@ function s.filter(c) ...@@ -46,16 +46,16 @@ function s.filter(c)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil,e) local b1=Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil,e)
local b2=Duel.GetMZoneCount(tp,c)>0 local b2=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return b1 and b2 end if chk==0 then return b2>0 end
local off=1 local off=1
local ops,opval={},{} local ops,opval={},{}
if b1 and b2 then if b1 and b2>0 then
ops[off]=aux.Stringid(id,0) ops[off]=aux.Stringid(id,0)
opval[off]=0 opval[off]=0
off=off+1 off=off+1
end end
if b2 then if b2>0 then
ops[off]=aux.Stringid(id,1) ops[off]=aux.Stringid(id,1)
opval[off]=1 opval[off]=1
off=off+1 off=off+1
...@@ -73,10 +73,9 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -73,10 +73,9 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function s.splimit(e,c) function s.splimit(e,c)
return not (c:IsType(TYPE_SYNCHRO) or c:IsType(TYPE_XYZ)) and c:IsLocation(LOCATION_EXTRA) return not (c:IsSetCard(0x43f) or c:IsSetCard(0x43e)) and c:IsLocation(LOCATION_EXTRA)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local sel=e:GetLabel() local sel=e:GetLabel()
if sel==0 then if sel==0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -44,8 +44,8 @@ function s.filter(c) ...@@ -44,8 +44,8 @@ function s.filter(c)
and not (c:IsType(TYPE_QUICKPLAY) or c:IsType(TYPE_CONTINUOUS) or c:IsType(TYPE_EQUIP) or c:IsType(TYPE_COUNTER) or c:IsType(TYPE_FIELD)) and not (c:IsType(TYPE_QUICKPLAY) or c:IsType(TYPE_CONTINUOUS) or c:IsType(TYPE_EQUIP) or c:IsType(TYPE_COUNTER) or c:IsType(TYPE_FIELD))
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) and Duel.GetFieldGroupCount(tp,LOCATION_SZONE,0)<5 end if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) and Duel.GetFieldGroupCount(tp,LOCATION_SZONE,0)<5 end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end end
function s.operation(e,tp,eg,ep,ev,re,r,rp) function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
......
...@@ -58,10 +58,13 @@ end ...@@ -58,10 +58,13 @@ end
function s.tdop(e,tp,eg,ep,ev,re,r,rp) function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler() local tc=re:GetHandler()
if tc:IsRelateToEffect(re) then if tc:IsRelateToEffect(re) then
tc:CancelToGrave()
if Duel.SendtoDeck(tc,nil,1,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_DECK) then if Duel.SendtoDeck(tc,nil,1,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_DECK) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COUNTER) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COUNTER)
local ac=Duel.SelectMatchingCard(tp,s.acfilter,tp,LOCATION_ONFIELD,0,1,1,nil) local ag=Duel.SelectMatchingCard(tp,s.acfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
ac:AddCounter(0x43f,1) if #ag>0 then
ag:GetFirst():AddCounter(0x43f,1)
end
end end
end end
end end
......
...@@ -3,7 +3,7 @@ local s,id=GetID() ...@@ -3,7 +3,7 @@ local s,id=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOKEN+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
......
...@@ -82,7 +82,7 @@ function s.thop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,7 @@ function s.thop1(e,tp,eg,ep,ev,re,r,rp)
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
and Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(47344587,2)) then and Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(47344587,2)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end end
......
...@@ -38,7 +38,7 @@ end ...@@ -38,7 +38,7 @@ end
c50218112.lvup={50218111} c50218112.lvup={50218111}
c50218112.lvdn={50218111,50218110} c50218112.lvdn={50218111,50218110}
function c50218112.atkfilter(c) function c50218112.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0xcb1) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0xcb1) and c:IsType(TYPE_MONSTER)
end end
function c50218112.atkup(e,c) function c50218112.atkup(e,c)
return Duel.GetMatchingGroupCount(c50218112.atkfilter,c:GetControler(),LOCATION_GRAVE,0,nil)*200 return Duel.GetMatchingGroupCount(c50218112.atkfilter,c:GetControler(),LOCATION_GRAVE,0,nil)*200
......
...@@ -85,9 +85,6 @@ function c50218134.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,9 +85,6 @@ function c50218134.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c50218134.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0xcb1)
end
function c50218134.atkup(e,c) function c50218134.atkup(e,c)
return Duel.GetMatchingGroupCount(c50218134.atkfilter,c:GetControler(),LOCATION_GRAVE,0,nil)*300 return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,0xcb1)*300
end end
\ No newline at end of file
...@@ -33,6 +33,7 @@ function c50218138.initial_effect(c) ...@@ -33,6 +33,7 @@ function c50218138.initial_effect(c)
e4:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE) e4:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_SPSUMMON_SUCCESS) e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCondition(c50218138.atkcon) e4:SetCondition(c50218138.atkcon)
e4:SetTarget(c50218138.atktg) e4:SetTarget(c50218138.atktg)
e4:SetOperation(c50218138.atkop) e4:SetOperation(c50218138.atkop)
......
...@@ -35,9 +35,9 @@ function c88178006.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,9 +35,9 @@ function c88178006.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c88178006.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(c88178006.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function c88178006.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c88178006.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(aux.aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local g=Duel.SelectTarget(tp,aux.aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
......
...@@ -57,7 +57,7 @@ function c9310007.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c9310007.spop(e,tp,eg,ep,ev,re,r,rp)
local kg2=kg:Select(tp,1,1,nil) local kg2=kg:Select(tp,1,1,nil)
local sc=kg2:GetFirst() local sc=kg2:GetFirst()
local sg1=sg:SelectSubGroup(tp,c9310007.mtfilter,false,1,#sg,kc,sc) local sg1=sg:SelectSubGroup(tp,c9310007.mtfilter,false,1,#sg,kc,sc)
sg1:Merge(kc) sg1:Merge(Group.FromCards(kc))
sc:SetMaterial(sg1) sc:SetMaterial(sg1)
Duel.BreakEffect() Duel.BreakEffect()
Duel.SynchroSummon(tp,sc,nil,sg1) Duel.SynchroSummon(tp,sc,nil,sg1)
......
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