Commit 982fc531 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 3b061a43
No preview for this file type
--天知龙 暗黑残星龙
--Lua by Hui_lan, fix by scl
if not pcall(function() require("expansions/script/c65099990") end) then require("script/c65099990") end
local m,cm=rscf.DefineCard(65010552,"TianZhi")
function c65010552.initial_effect(c)
--disable
local e1=Effect.CreateEffect(c)
......
--天知骑士王 冈格尼尔龙王
if not pcall(function() require("expansions/script/c65099990") end) then require("script/c65099990") end
local m,cm=rscf.DefineCard(65010554,"TianZhi")
function c65010554.initial_effect(c)
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,65010558,c65010554.fusfilter,1,true,true)
......
--天知之翼的骑行
if not pcall(function() require("expansions/script/c65099990") end) then require("script/c65099990") end
local m,cm=rscf.DefineCard(65010556,"TianZhi")
function c65010556.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
......@@ -23,7 +25,7 @@ function c65010556.initial_effect(c)
c:RegisterEffect(e2)
end
function c65010556.filter(c,e,tp)
return (c:IsCode(65010558) or c:IsCode(65010552)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:CheckSetCard("TianZhi") and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c65010556.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -35,7 +37,8 @@ function c65010556.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c65010556.filter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
--Duel.SpecialSummonStep(g,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER)
......@@ -47,7 +50,7 @@ function c65010556.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetReset(RESET_EVENT+RESETS_REDIRECT)
e2:SetValue(LOCATION_DECKBOT)
tc:RegisterEffect(e2)
c:RegisterEffect(e2)
end
Duel.SpecialSummonComplete()
end
......@@ -59,7 +62,7 @@ function c65010556.filter1(c,e)
return not c:IsImmuneToEffect(e)
end
function c65010556.filter2(c,e,tp,m,f,chkf)
if c:IsCode(65010554) then
if c:CheckSetCard("TianZhi") then
local mg=Duel.GetMatchingGroup(c65010556.filter0,tp,LOCATION_GRAVE,0,nil)
m:Merge(mg)
end
......
--天知之翼骑士
if not pcall(function() require("expansions/script/c65099990") end) then require("script/c65099990") end
local m,cm=rscf.DefineCard(65010558,"TianZhi")
function c65010558.initial_effect(c)
--set
local e1=Effect.CreateEffect(c)
......@@ -49,7 +51,7 @@ function c65010558.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetLabelObject():GetLabel()==Duel.GetTurnCount() and e:GetHandler():GetFlagEffect(65010558)>0
end
function c65010558.tdfil(c)
return c:IsCode(65010556) and c:IsAbleToDeck()
return c:CheckSetCard("TianZhi") and c:IsType(TYPE_SPELL) and c:IsAbleToDeck()
end
function c65010558.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65010558.tdfil,tp,LOCATION_REMOVED,0,1,nil) and e:GetHandler():IsAbleToDeck() end
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -59,16 +59,18 @@ rsreset.ered = RESET_EVENT+RESETS_REDIRECT
--Code Variable
rscode.Extra_Effect_Activate = m+100 --"Attach Effect"
rscode.Extra_Effect_BSolve = m+200
rscode.Extra_Effect_ASolve = m+800
rscode.Extra_Effect_BSolve = m+650
rscode.Extra_Effect_ASolve = m+102
rscode.Phase_Leave_Flag = m+300 --"Summon Flag for SummonBuff"
rscode.Extra_Synchro_Material= m+400 --"Extra Synchro Material"
rscode.Extra_Xyz_Material = m+401 --"Extra Xyz Material"
rscode.Utility_Xyz_Material = m+500 --"Utility Xyz Material"
rscode.Previous_Set_Code = m+600 --"Previous Set Code"
rscode.Synchro_Material = m+700 --"Record synchro proceudre target"
rscode.Pre_Complete_Proc = m+900 --"Previous c:CompleteProcedure"
rscode.Phase_Leave_Flag = m+200 --"Summon Flag for SummonBuff"
rscode.Extra_Synchro_Material= m+300 --"Extra Synchro Material"
rscode.Extra_Xyz_Material = m+301 --"Extra Xyz Material"
rscode.Utility_Xyz_Material = m+400 --"Utility Xyz Material"
rscode.Previous_Set_Code = m+500 --"Previous Set Code"
rscode.Synchro_Material = m+600 --"Record synchro proceudre target"
rscode.Pre_Complete_Proc = m+700 --"Previous c:CompleteProcedure"
rscode.Set = m+800 --"EVENT_SET"
--Hint Message Variable
rshint.act=aux.Stringid(m,0) --"activate spell/trap"
......@@ -96,10 +98,10 @@ rshint.drct=aux.Stringid(m,5) --"select draw number"
rshint.isss=aux.Stringid(17535764,1) --"would you SS a monster?"
rshint.istg=aux.Stringid(62834295,2) --"would you send to GY?"
rshint.isdes=aux.Stringid(20590515,2) --"would you destroy?"
rshint.istd=aux.Stringid(m,1) --"would you send to Deck?"
rshint.istd=aux.Stringid(m,1) --"would you send to Deck?"
rshint.isrm=aux.Stringid(93191801,2) --"would you reomve?"
rshint.isset=aux.Stringid(m,5) --"would you set?"
rshint.istf=aux.Stringid(m,6) --"would you place to field?"
rshint.istf=aux.Stringid(m,6) --"would you place to field?"
rshint.isth=aux.Stringid(26118970,1) --"would you send to hand?"
rshint.isrh=aux.Stringid(31102447,2) --"would you return to hand"
rshint.isdr=aux.Stringid(3679218,1) --"would you draw?"
......@@ -158,6 +160,7 @@ rsloc.all=0xff
--Escape Old Functions
function rsof.Escape_Old_Functions()
--//
rsof.DefineCard = rscf.DefineCard
rscf.FilterFaceUp = rscf.fufilter
rsof.SendtoHand = rsop.SendtoHand
......@@ -170,7 +173,10 @@ function rsof.Escape_Old_Functions()
rsof.SelectOption_Page= rsop.SelectOption_Page
rsof.SelectNumber= rsop.AnnounceNumber
rsof.SelectNumber_List= rsop.AnnounceNumber_List
rsof.IsSet = rscf.DefineSet
rsof.IsSet = rscf.DefineSet
rscf.GetRelationThisCard = rscf.GetFaceUpSelf
rsop.eqop = rsop.Equip
--//
--some card use old SummonBuff's phase leave field parterment, must fix them in their luas
rssf.SummonBuff=function(attlist,isdis,isdistig,selfleave,phaseleave)
local bufflist={}
......@@ -199,6 +205,10 @@ function rsof.Escape_Old_Functions()
end
return bufflist
end
--//
rscf.SetSpecialSummonProduce=function(reg_list,range,con,op,desc_list,lim_list,reset_list)
return rscf.AddSpecialSummonProcdure(reg_list,range,con,nil,op,desc_list,lim_list,nil,reset_list)
end
end
--Record Author
local am=65099992
local Version_Number=20200323
--Scl
#Scl
local rsdka = Dakyria
local rsdio = Diablo
local rsnr = Night_Raven
......@@ -10,13 +10,13 @@ local rsem = Eridiument
local rsxb = XB
local rsos = Oracle_Smith
local rssp = Stellar_Pearl
local rsgd = Ghostdom_Dragon
//local rsgd = Ghostdom_Dragon
local rsed = Epic_Dragon
local rsdh = Devil_Hunter
local rsds = Dark_Souls
local rsca = Corona
--Scl - Special Mode
#Scl - Special Mode
local rssm = Special_Mode
local rssmb = Special_Mode_Change_Base_Function
local rssmt = Special_Mode_Turbo_Duel
......@@ -27,18 +27,18 @@ local rssmf = Special_Mode_Fast_Duel
local rssmm = Special_Mode_Multiple_Duel
local rssmu = Special_Mode_Universal_Duel
--Gale 1472676207
#Gale 1472676207
local rsve = Voison
local rsneov= Neons
local tfrsv = T.Fairies
local rsss = Star_Spirit
--ChiJiang 626386490
#ChiJiang 626386490
local rsnm = Nightmare
local rslf = Little_Fox
local rccv = Thermonuclear
--XiaoMi 643865567
#XiaoMi 643865567
local rssg = Sex_Gun
local rsps = Pseudo_Soul
local rsdcc = Dragon_Chess_Corps
......@@ -51,49 +51,55 @@ local rsik = Infernal_Knight
local rsvw = Virus_Wrom
local rsia = Indolent_Angel
local rsso = Simulated_Organism
local rstr = True_Ritual
--NianBao 583322404
#NianBao 583322404
local rslap = Lapin
local rskh = Karehana
--XiaoDaoHeng 1614895649
#XiaoDaoHeng 1614895649
local rslrd = Life_DeathRound_Dance
--Huang 1184387005
#Huang 1184387005
local rsts = Trinity_Sword
--Luoxing 1151483512
#Luoxing 1151483512
local rsdt = Dark_Tale
local rsod = Order
--YunZeZhun 1587361112
#YunZeZhun 1587361112
local rsphh = Phantom_Thieves_Of_Hearts
local rsgc = Guard_City
--ZhenDong
#ZhenDong
local rsfv = Fgo/Assassin
--JingJing 1772438857
#JingJing 1772438857
local rsba = BlueAngel
--Akashic 3204027606
#Akashic 3204027606
local rszg = Zogu
local rsgs = Gran_Sphere
local rsoc = Oligocene_Civilization
local rsgol = Giant_of_Light
local rssb = Space_Beasts
--HeiBai 1172777968
#HeiBai 1172777968
local rstm = Toaru_Majutsu_no_Index
--2558566212
#2558566212
local rsgod = God
--02 1164477469
#02 1164477469
local rsva = VR_Aqua
//local = Tian_Zhi
#ReiKai 2404873791
local rsch = Churck
--Set Code
--Scl
#Scl
--local = 0x1330
local Alchement_Bio = 0x3330
local Chaos_Alchemy = 0x5330
......@@ -127,7 +133,7 @@ local Stellar_Pearl = 0xa333
local Utoland = 0xc333
--local = 0x1334
local = 0x3334
local = 0x3334
local Summerlover = 0x5334
local Quasi_Beast = 0x6334
local Bite_Teech = 0x9334
......
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