Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
MyCard
pre-release-database-cdb
Commits
4231521c
Commit
4231521c
authored
Dec 25, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix QCDB-JP001 script
parent
6141458b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
script/c100212001.lua
script/c100212001.lua
+11
-8
No files found.
script/c100212001.lua
View file @
4231521c
...
@@ -68,6 +68,9 @@ end
...
@@ -68,6 +68,9 @@ end
function
c100212001
.
Chaos_FShaddollFilter
(
c
,
mg
,
fc
,
chkf
)
function
c100212001
.
Chaos_FShaddollFilter
(
c
,
mg
,
fc
,
chkf
)
return
c
:
IsFusionSetCard
(
0xcf
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
and
mg
:
CheckSubGroup
(
c100212001
.
FShaddollSpgcheck
,
1
,
3
,
fc
,
c
,
chkf
)
return
c
:
IsFusionSetCard
(
0xcf
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
and
mg
:
CheckSubGroup
(
c100212001
.
FShaddollSpgcheck
,
1
,
3
,
fc
,
c
,
chkf
)
end
end
function
c100212001
.
Engine_Startup_Chaos_FShaddollFilter
(
c
,
mg
,
fc
,
chkf
)
return
c
:
IsFusionSetCard
(
0xcf
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
and
mg
:
CheckSubGroup
(
c100212001
.
FShaddollSpgcheck
,
1
,
3
,
fc
,
c
,
chkf
)
end
function
c100212001
.
Unnecessary_Chaos_FShaddollFilter
(
c
)
function
c100212001
.
Unnecessary_Chaos_FShaddollFilter
(
c
)
return
c
:
IsFusionSetCard
(
0xcf
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
and
not
(
c
:
IsFusionSetCard
(
0xdd
)
or
c
:
IsFusionCode
(
23995346
)
or
c
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
))
return
c
:
IsFusionSetCard
(
0xcf
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
and
not
(
c
:
IsFusionSetCard
(
0xdd
)
or
c
:
IsFusionCode
(
23995346
)
or
c
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
))
end
end
...
@@ -82,8 +85,8 @@ function c100212001.FShaddollSpgcheck(g,fc,ec,chkf)
...
@@ -82,8 +85,8 @@ function c100212001.FShaddollSpgcheck(g,fc,ec,chkf)
if
aux
.
FCheckAdditional
and
not
aux
.
FCheckAdditional
(
tp
,
sg
,
fc
)
if
aux
.
FCheckAdditional
and
not
aux
.
FCheckAdditional
(
tp
,
sg
,
fc
)
or
aux
.
FGoalCheckAdditional
and
not
aux
.
FGoalCheckAdditional
(
tp
,
sg
,
fc
)
then
return
false
end
or
aux
.
FGoalCheckAdditional
and
not
aux
.
FGoalCheckAdditional
(
tp
,
sg
,
fc
)
then
return
false
end
return
((
g
:
FilterCount
(
c100212001
.
Blue_Eyes_Ultimate_Dragon
,
nil
)
==
1
return
((
g
:
FilterCount
(
c100212001
.
Blue_Eyes_Ultimate_Dragon
,
nil
)
==
1
and
g
:
FilterCount
(
Card
.
IsFusionSetCard
,
c
,
0xdd
)
==
0
and
g
:
FilterCount
(
Card
.
IsFusionSetCard
,
Group
.
FromCards
(
c
,
ec
)
,
0xdd
)
==
0
or
g
:
FilterCount
(
Card
.
IsFusionSetCard
,
nil
,
0xdd
)
==
3
)
or
g
:
FilterCount
(
Card
.
IsFusionSetCard
,
ec
,
0xdd
)
==
3
)
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
fc
)
>
0
))
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
fc
)
>
0
))
and
g
:
FilterCount
(
c100212001
.
Unnecessary_Chaos_FShaddollFilter
,
nil
)
==
0
and
g
:
FilterCount
(
c100212001
.
Unnecessary_Chaos_FShaddollFilter
,
nil
)
==
0
end
end
...
@@ -111,7 +114,7 @@ function c100212001.FShaddollCondition()
...
@@ -111,7 +114,7 @@ function c100212001.FShaddollCondition()
if
gc
then
if
gc
then
if
not
mg
:
IsContains
(
gc
)
then
return
false
end
if
not
mg
:
IsContains
(
gc
)
then
return
false
end
end
end
return
mg
:
IsExists
(
c100212001
.
Chaos_FShaddollFilter
,
1
,
nil
,
mg
,
fc
,
chkf
)
return
mg
:
IsExists
(
c100212001
.
Engine_Startup_
Chaos_FShaddollFilter
,
1
,
nil
,
mg
,
fc
,
chkf
)
end
end
end
end
function
c100212001
.
FShaddollOperation
()
function
c100212001
.
FShaddollOperation
()
...
@@ -161,8 +164,8 @@ end
...
@@ -161,8 +164,8 @@ end
function
c100212001
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100212001
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
return
rp
==
1
-
tp
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
((
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetFlagEffect
(
tp
,
100212001
)
==
0
)
and
((
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetFlagEffect
(
tp
,
100212001
)
==
0
)
or
(
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
GetFlagEffect
(
tp
,
100212
101
)
==
0
)
or
(
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
GetFlagEffect
(
tp
,
100212
001
+
100
)
==
0
)
or
(
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
GetFlagEffect
(
tp
,
100212
201
)
==
0
))
or
(
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
GetFlagEffect
(
tp
,
100212
001
+
200
)
==
0
))
end
end
function
c100212001
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100212001
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -178,15 +181,15 @@ function c100212001.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -178,15 +181,15 @@ function c100212001.distg(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
elseif
re
:
IsActiveType
(
TYPE_SPELL
)
then
elseif
re
:
IsActiveType
(
TYPE_SPELL
)
then
Duel
.
RegisterFlagEffect
(
tp
,
100212
101
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
100212
001
+
100
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100212001
,
4
))
e1
:
SetDescription
(
aux
.
Stringid
(
100212001
,
4
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
else
re
:
IsActiveType
(
TYPE_TRAP
)
else
if
re
:
IsActiveType
(
TYPE_TRAP
)
then
Duel
.
RegisterFlagEffect
(
tp
,
100212
201
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
100212
001
+
200
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100212001
,
5
))
e1
:
SetDescription
(
aux
.
Stringid
(
100212001
,
5
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
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