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
Amiya
pre-release-database-cdb
Commits
82f47de4
Commit
82f47de4
authored
Dec 25, 2023
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update QCDB-JP001 script
parent
51b89d85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
script/c100212001.lua
script/c100212001.lua
+7
-6
No files found.
script/c100212001.lua
View file @
82f47de4
...
@@ -165,8 +165,8 @@ end
...
@@ -165,8 +165,8 @@ end
function
s
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
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
,
id
)
==
0
)
and
((
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
)
or
(
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
GetFlagEffect
(
tp
,
id
+
100
)
==
0
)
or
(
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
GetFlagEffect
(
tp
,
id
+
o
)
==
0
)
or
(
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
GetFlagEffect
(
tp
,
id
+
200
)
==
0
))
or
(
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
GetFlagEffect
(
tp
,
id
+
o
*
2
)
==
0
))
end
end
function
s
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -182,7 +182,7 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -182,7 +182,7 @@ function s.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
,
id
+
100
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
o
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
4
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
4
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -190,7 +190,7 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -190,7 +190,7 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
elseif
re
:
IsActiveType
(
TYPE_TRAP
)
then
elseif
re
:
IsActiveType
(
TYPE_TRAP
)
then
Duel
.
RegisterFlagEffect
(
tp
,
id
+
200
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
o
*
2
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
5
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
5
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -214,7 +214,8 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -214,7 +214,8 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
spfilter
(
c
,
e
,
tp
)
function
s
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsFusionSetCard
(
0xdd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
(
c
:
IsFusionSetCard
(
0xdd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
c
:
IsFusionSetCard
(
0xcf
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
))
or
c
:
IsFusionSetCard
(
0xcf
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
not
(
c
:
IsCode
(
70551291
)
or
c
:
IsCode
(
55410871
)
or
c
:
IsCode
(
20654247
)))
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
or
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
or
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
end
end
...
...
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