Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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-scripts-888
Commits
1c6f84c7
Commit
1c6f84c7
authored
Feb 24, 2024
by
Chen Bill
Committed by
GitHub
Feb 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update EVENT_REMOVE (#2401)
parent
eeac7bfe
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
44 deletions
+5
-44
c13076804.lua
c13076804.lua
+1
-6
c3137279.lua
c3137279.lua
+1
-1
c48626373.lua
c48626373.lua
+0
-8
c49565413.lua
c49565413.lua
+1
-6
c68073522.lua
c68073522.lua
+1
-8
c95973569.lua
c95973569.lua
+1
-1
c96633955.lua
c96633955.lua
+0
-7
c99137266.lua
c99137266.lua
+0
-7
No files found.
c13076804.lua
View file @
1c6f84c7
...
...
@@ -47,13 +47,8 @@ function s.initial_effect(c)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
s
.
checkfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
s
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
s
.
checkfilter
,
1
,
nil
)
then
Duel
.
RegisterFlagEffect
(
0
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
RegisterFlagEffect
(
0
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
s
.
rmcon
(
e
)
return
Duel
.
GetFlagEffect
(
0
,
id
)
>
0
...
...
c3137279.lua
View file @
1c6f84c7
...
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
s
.
cfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
and
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
...
...
c48626373.lua
View file @
1c6f84c7
...
...
@@ -20,7 +20,6 @@ function s.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_CUSTOM
+
id
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e2
:
SetCondition
(
s
.
mtcon
)
e2
:
SetOperation
(
s
.
mtop
)
c
:
RegisterEffect
(
e2
)
aux
.
RegisterMergedDelayedEvent
(
c
,
id
,
EVENT_REMOVE
)
...
...
@@ -53,13 +52,6 @@ function s.xyzop(e,tp,chk)
or
Duel
.
GetCustomActivityCount
(
id
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
0
)
end
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
s
.
remfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
s
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
eg
:
IsExists
(
s
.
remfilter
,
1
,
nil
)
end
function
s
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
(
c
:
IsRelateToChain
()
and
c
:
IsType
(
TYPE_XYZ
))
then
return
end
...
...
c49565413.lua
View file @
1c6f84c7
...
...
@@ -44,13 +44,8 @@ function s.initial_effect(c)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
s
.
checkfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
s
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
s
.
checkfilter
,
1
,
nil
)
then
Duel
.
RegisterFlagEffect
(
0
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
RegisterFlagEffect
(
0
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
s
.
rmcon
(
e
)
return
Duel
.
GetFlagEffect
(
0
,
id
)
>
0
...
...
c68073522.lua
View file @
1c6f84c7
...
...
@@ -12,20 +12,13 @@ function c68073522.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c68073522
.
condition
)
e2
:
SetTarget
(
c68073522
.
target
)
e2
:
SetOperation
(
c68073522
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c68073522
.
filter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c68073522
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c68073522
.
filter
,
1
,
nil
)
end
function
c68073522
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
ct
=
eg
:
FilterCount
(
c68073522
.
filter
,
nil
)
local
ct
=
#
eg
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
ct
*
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
0
,
0
,
tp
,
ct
*
500
)
...
...
c95973569.lua
View file @
1c6f84c7
...
...
@@ -69,7 +69,7 @@ function s.matchk(e,c)
ef
:
SetCountLimit
(
ct
)
end
function
s
.
sfilter
(
c
,
e
,
tp
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c96633955.lua
View file @
1c6f84c7
...
...
@@ -42,7 +42,6 @@ function c96633955.initial_effect(c)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCode
(
EVENT_REMOVE
)
e6
:
SetCountLimit
(
1
,
96633955
)
e6
:
SetCondition
(
c96633955
.
remcon
)
e6
:
SetTarget
(
c96633955
.
remtg
)
e6
:
SetOperation
(
c96633955
.
remop
)
c
:
RegisterEffect
(
e6
)
...
...
@@ -64,12 +63,6 @@ function c96633955.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
return
true
else
return
false
end
end
function
c96633955
.
remfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c96633955
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c96633955
.
remfilter
,
1
,
nil
)
end
function
c96633955
.
remtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
...
...
c99137266.lua
View file @
1c6f84c7
...
...
@@ -14,7 +14,6 @@ function c99137266.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetCountLimit
(
1
,
99137266
)
e2
:
SetCondition
(
c99137266
.
remcon
)
e2
:
SetTarget
(
c99137266
.
remtg
)
e2
:
SetOperation
(
c99137266
.
remop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -30,12 +29,6 @@ function c99137266.initial_effect(c)
e3
:
SetOperation
(
c99137266
.
spop
)
c
:
RegisterEffect
(
e3
)
end
function
c99137266
.
remfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c99137266
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c99137266
.
remfilter
,
1
,
nil
)
end
function
c99137266
.
rmfilter
(
c
)
return
(
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsRace
(
RACE_WYRM
)
or
c
:
IsSetCard
(
0x16b
))
and
c
:
IsAbleToRemove
()
and
(
c
:
IsFaceup
()
or
not
c
:
IsOnField
())
...
...
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