Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
ygopro-pre-data
Commits
b9a0837b
Commit
b9a0837b
authored
Sep 12, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8822579a
Pipeline
#23453
passed with stages
in 1 minute and 5 seconds
Changes
13
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
43 additions
and
29 deletions
+43
-29
script/c100314001.lua
script/c100314001.lua
+1
-1
script/c100314003.lua
script/c100314003.lua
+2
-2
script/c100314025.lua
script/c100314025.lua
+1
-1
script/c101202002.lua
script/c101202002.lua
+1
-1
script/c101202020.lua
script/c101202020.lua
+27
-8
script/c101202025.lua
script/c101202025.lua
+1
-2
script/c101202030.lua
script/c101202030.lua
+1
-1
script/c101202035.lua
script/c101202035.lua
+1
-2
script/c101202042.lua
script/c101202042.lua
+1
-1
script/c101202060.lua
script/c101202060.lua
+1
-2
script/c101202061.lua
script/c101202061.lua
+1
-1
script/c101202066.lua
script/c101202066.lua
+2
-0
script/c101202077.lua
script/c101202077.lua
+3
-7
No files found.
script/c100314001.lua
View file @
b9a0837b
...
...
@@ -33,7 +33,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
cfilter
(
c
,
tp
,
se
)
return
c
:
Is
Controler
(
tp
)
and
c
:
Is
PreviousControler
(
tp
)
and
c
:
GetOriginalAttribute
()
==
ATTRIBUTE_FIRE
return
c
:
IsPreviousControler
(
tp
)
and
c
:
GetOriginalAttribute
()
==
ATTRIBUTE_FIRE
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
(
se
==
nil
or
c
:
GetReasonEffect
()
~=
se
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c100314003.lua
View file @
b9a0837b
...
...
@@ -51,7 +51,7 @@ function s.negcon(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
s
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsFaceupEx
()
end
function
s
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
desfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
...
...
@@ -66,4 +66,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
end
\ No newline at end of file
end
script/c100314025.lua
View file @
b9a0837b
...
...
@@ -48,7 +48,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
repfilter
(
c
,
tp
)
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x81
)
and
c
:
Is
Location
(
LOCATION_MZONE
)
and
c
:
Is
Controler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x81
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
end
function
s
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
eg
:
IsExists
(
s
.
repfilter
,
1
,
nil
,
tp
)
end
...
...
script/c101202002.lua
View file @
b9a0837b
...
...
@@ -132,7 +132,7 @@ function c101202002.thfilter2(c,tp)
end
function
c101202002
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
eg
:
IsExists
(
c101202002
.
thfilter2
,
1
,
c
,
tp
)
and
c
:
IsFaceup
()
return
eg
:
IsExists
(
c101202002
.
thfilter2
,
1
,
c
,
tp
)
and
not
eg
:
IsContains
(
c
)
and
c
:
IsFaceup
()
end
function
c101202002
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
...
...
script/c101202020.lua
View file @
b9a0837b
--ブラック・ホール・ドラゴン
--Dark Hole Dragon
--coded by Lyris
--coded by Lyris
& Mercury233
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--effect indes
...
...
@@ -16,11 +16,10 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_
DESTROYED
)
e2
:
SetCode
(
EVENT_
CUSTOM
+
id
)
e2
:
SetRange
(
LOCATION_GRAVE
+
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -34,17 +33,37 @@ function s.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetOperation
(
s
.
regop
)
c
:
RegisterEffect
(
e3
)
if
not
s
.
global_check
then
s
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DESTROY
)
ge1
:
SetOperation
(
s
.
descheck
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
s
.
cfilter
(
c
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
GetReasonEffect
():
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
function
s
.
descheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
res
=
false
for
tc
in
aux
.
Next
(
eg
)
do
if
tc
:
IsLocation
(
LOCATION_MZONE
)
and
r
&
REASON_EFFECT
>
0
then
if
re
==
nil
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
res
=
true
break
end
local
tg
=
Duel
.
GetChainInfo
(
Duel
.
GetCurrentChain
(),
CHAININFO_TARGET_CARDS
)
if
tg
==
nil
or
not
tg
:
IsContains
(
tc
)
then
res
=
true
break
end
end
end
if
res
then
Duel
.
RaiseEvent
(
eg
,
EVENT_CUSTOM
+
id
,
re
,
r
,
rp
,
tp
,
0
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c101202025.lua
View file @
b9a0837b
...
...
@@ -44,10 +44,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_
CLIENT_HINT
+
EFFECT_FLAG_
PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
slim
)
...
...
script/c101202030.lua
View file @
b9a0837b
...
...
@@ -102,7 +102,7 @@ function c101202030.pop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
sc
and
Duel
.
SendtoDeck
(
sc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
sc
:
IsLocation
(
LOCATION_EXTRA
)
if
sc
and
Duel
.
SendtoDeck
(
sc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
sc
:
IsLocation
(
LOCATION_EXTRA
)
and
sc
:
IsControler
(
tp
)
and
sc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
sc
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101202030
,
2
))
then
Duel
.
BreakEffect
()
...
...
script/c101202035.lua
View file @
b9a0837b
...
...
@@ -50,10 +50,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_
CLIENT_HINT
+
EFFECT_FLAG_
PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
aux
.
NOT
(
Card
.
IsSetCard
),
0x27
))
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
...
...
script/c101202042.lua
View file @
b9a0837b
...
...
@@ -76,7 +76,7 @@ function s.lsop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
script/c101202060.lua
View file @
b9a0837b
...
...
@@ -41,10 +41,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_
CLIENT_HINT
+
EFFECT_FLAG_
PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
limit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
...
...
script/c101202061.lua
View file @
b9a0837b
...
...
@@ -36,7 +36,7 @@ function s.mfilter(c,tp)
return
(
c
:
IsType
(
TYPE_SPIRIT
)
or
c
:
IsCode
(
25415053
))
and
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsPreviousControler
(
tp
)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
bit
.
band
(
c
:
GetPreviousAttributeOnField
(),
ATTRIBUTE_WIND
)
~=
0
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101202066.lua
View file @
b9a0837b
...
...
@@ -40,8 +40,10 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
or
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_DECK
)
==
0
then
return
end
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_DECK
,
0
)
local
oc
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_DECK
,
0
)
Duel
.
ConfirmCards
(
tp
,
sc
)
Duel
.
ConfirmCards
(
1
-
tp
,
sc
)
Duel
.
ConfirmCards
(
tp
,
oc
)
Duel
.
ConfirmCards
(
1
-
tp
,
oc
)
local
op
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
if
sc
:
IsType
(
1
<<
op
)
then
Duel
.
SendtoHand
(
sc
,
nil
,
REASON_EFFECT
)
else
Duel
.
MoveSequence
(
sc
,
SEQ_DECKTOP
)
end
...
...
script/c101202077.lua
View file @
b9a0837b
...
...
@@ -107,14 +107,10 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
s
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
res
=
nil
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
res
=
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
local
dg
=
Duel
.
GetMatchingGroup
(
aux
.
NegateEffectMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
#
dg
>
0
and
res
~=
0
then
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
dg
=
Duel
.
GetMatchingGroup
(
aux
.
NegateEffectMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
dc
=
dg
:
GetFirst
()
while
dc
do
Duel
.
NegateRelatedChain
(
dc
,
RESET_TURN_SET
)
...
...
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