Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
d0312c8c
Commit
d0312c8c
authored
Aug 05, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1+1=3
parent
d03caa8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
expansions/script/c81000000.lua
expansions/script/c81000000.lua
+21
-21
No files found.
expansions/script/c81000000.lua
View file @
d0312c8c
...
...
@@ -52,11 +52,11 @@ function Tenka.KoikakeAtkcon(e)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
function
Tenka
.
KoikakeAtk
f
ilter
(
c
)
function
Tenka
.
KoikakeAtk
F
ilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetLevel
()
>
0
end
function
Tenka
.
KoikakeLinkAtkval
(
e
,
c
)
local
lg
=
c
:
GetLinkedGroup
():
Filter
(
Tenka
.
KoikakeAtk
f
ilter
,
nil
)
local
lg
=
c
:
GetLinkedGroup
():
Filter
(
Tenka
.
KoikakeAtk
F
ilter
,
nil
)
return
lg
:
GetSum
(
Card
.
GetLevel
)
*
300
end
function
Tenka
.
KoikakeAtkval
(
e
,
c
)
...
...
@@ -76,21 +76,21 @@ function Tenka.Einstein(c)
ea
:
SetRange
(
LOCATION_MZONE
)
ea
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
ea
:
SetTargetRange
(
0
,
1
)
ea
:
SetCondition
(
Tenka
.
r
fcon
)
ea
:
SetCondition
(
Tenka
.
EinsteinR
fcon
)
c
:
RegisterEffect
(
ea
)
if
not
Tenka
.
global_check
then
Tenka
.
global_check
=
true
local
gea
=
Effect
.
CreateEffect
(
c
)
gea
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
gea
:
SetCode
(
EVENT_DAMAGE
)
gea
:
SetOperation
(
Tenka
.
checko
p
)
gea
:
SetOperation
(
Tenka
.
EinsteinCheckO
p
)
Duel
.
RegisterEffect
(
gea
,
0
)
end
end
function
Tenka
.
r
fcon
(
e
)
function
Tenka
.
EinsteinR
fcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
function
Tenka
.
checko
p
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Tenka
.
EinsteinCheckO
p
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
Duel
.
RegisterFlagEffect
(
ep
,
81024000
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
...
...
@@ -104,21 +104,21 @@ function Tenka.EinBattleCon(e,tp,eg,ep,ev,re,r,rp)
end
--Miyako
function
Tenka
.
MiyakoCost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Tenka
.
costf
ilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Tenka
.
MiyakoCostF
ilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Tenka
.
costf
ilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Tenka
.
MiyakoCostF
ilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
Tenka
.
costf
ilter
(
c
,
tp
)
function
Tenka
.
MiyakoCostF
ilter
(
c
,
tp
)
return
((
c
:
IsFaceup
()
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_CONTINUOUS
)
~=
0
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsHasEffect
(
81049012
,
tp
))
and
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
end
--Chiyuu
function
Tenka
.
Chiyuu
(
c
,
m
)
c
:
SetSPSummonOnce
(
m
)
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x581f
),
4
,
2
,
Tenka
.
Chiyuu
f
ilter
,
aux
.
Stringid
(
81066000
,
0
))
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x581f
),
4
,
2
,
Tenka
.
Chiyuu
F
ilter
,
aux
.
Stringid
(
81066000
,
0
))
c
:
EnableReviveLimit
()
end
function
Tenka
.
Chiyuu
f
ilter
(
c
)
function
Tenka
.
Chiyuu
F
ilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsSetCard
(
0x581f
)
end
--Arisa
...
...
@@ -129,7 +129,7 @@ function Tenka.ArisugawaArisa(c)
ea
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
ea
:
SetRange
(
LOCATION_MZONE
)
ea
:
SetCondition
(
Tenka
.
Arisugawaiscon
)
ea
:
SetValue
(
Tenka
.
Arisugawaes
f
ilter
)
ea
:
SetValue
(
Tenka
.
Arisugawaes
F
ilter
)
c
:
RegisterEffect
(
ea
)
local
eb
=
Effect
.
CreateEffect
(
c
)
eb
:
SetDescription
(
aux
.
Stringid
(
60018000
,
0
))
...
...
@@ -145,7 +145,7 @@ function Tenka.Arisugawaiscon(e)
local
seq
=
e
:
GetHandler
():
GetSequence
()
return
seq
==
0
or
seq
==
4
end
function
Tenka
.
Arisugawaes
f
ilter
(
e
,
te
)
function
Tenka
.
Arisugawaes
F
ilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
Tenka
.
Arisugawamvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -171,7 +171,7 @@ function Tenka.ArisugawaArisaB(c)
ea
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
ea
:
SetRange
(
LOCATION_MZONE
)
ea
:
SetCondition
(
Tenka
.
Arisugawaiscon
)
ea
:
SetValue
(
Tenka
.
Arisugawaes
f
ilter
)
ea
:
SetValue
(
Tenka
.
Arisugawaes
F
ilter
)
c
:
RegisterEffect
(
ea
)
local
eb
=
Effect
.
CreateEffect
(
c
)
eb
:
SetDescription
(
aux
.
Stringid
(
60018000
,
0
))
...
...
@@ -290,16 +290,16 @@ function Tenka.YunaHeath(c)
end
--
function
Tenka
.
MiuCost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Tenka
.
costf
ilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Tenka
.
MiuCostF
ilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
1090006
)
end
if
Duel
.
IsExistingMatchingCard
(
Tenka
.
costf
ilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
Tenka
.
MiuCostF
ilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
1090006
)
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
1090006
,
0
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Tenka
.
costf
ilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Tenka
.
MiuCostF
ilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
Tenka
.
costf
ilter
(
c
,
tp
)
function
Tenka
.
MiuCostF
ilter
(
c
,
tp
)
return
c
:
IsCode
(
1090000
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
--
...
...
@@ -326,17 +326,17 @@ end
function
Tenka
.
NagikoSplimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
Tenka
.
NagikoSp
f
ilter
(
c
,
tp
,
sc
)
function
Tenka
.
NagikoSp
F
ilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
Tenka
.
NagikoSpcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
Tenka
.
NagikoSp
f
ilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
Tenka
.
NagikoSp
F
ilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
Tenka
.
NagikoSptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
Tenka
.
NagikoSp
f
ilter
,
nil
,
tp
,
c
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
Tenka
.
NagikoSp
F
ilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckrel
,
true
,
2
,
2
,
tp
,
REASON_SPSUMMON
)
if
sg
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment