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
3f3aa080
Commit
3f3aa080
authored
Dec 05, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: REASON_TEMPORARY remove
remove card before iteration
parent
9d4adbd6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
20 deletions
+16
-20
c37192109.lua
c37192109.lua
+4
-5
c74586817.lua
c74586817.lua
+4
-5
c74659582.lua
c74659582.lua
+4
-5
c80335817.lua
c80335817.lua
+4
-5
No files found.
c37192109.lua
View file @
3f3aa080
...
@@ -51,13 +51,12 @@ function c37192109.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,13 +51,12 @@ function c37192109.rmop(e,tp,eg,ep,ev,re,r,rp)
local
rct
=
1
local
rct
=
1
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
rct
=
2
end
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
rct
=
2
end
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
if
c
:
GetOriginalCode
()
~=
id
then
og
:
RemoveCard
(
c
)
end
local
oc
=
og
:
GetFirst
()
local
oc
=
og
:
GetFirst
()
while
oc
do
while
oc
do
if
oc
==
c
and
oc
:
GetOriginalCode
()
~=
id
then
oc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
rct
,
fid
)
og
:
RemoveCard
(
oc
)
else
oc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
rct
,
fid
)
end
oc
=
og
:
GetNext
()
oc
=
og
:
GetNext
()
end
end
og
:
KeepAlive
()
og
:
KeepAlive
()
...
...
c74586817.lua
View file @
3f3aa080
...
@@ -59,13 +59,12 @@ function c74586817.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,13 +59,12 @@ function c74586817.rmop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
if
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
local
fid
=
c
:
GetFieldID
()
local
fid
=
c
:
GetFieldID
()
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
if
c
:
GetOriginalCode
()
~=
id
then
og
:
RemoveCard
(
c
)
end
local
oc
=
og
:
GetFirst
()
local
oc
=
og
:
GetFirst
()
while
oc
do
while
oc
do
if
oc
==
c
and
oc
:
GetOriginalCode
()
~=
id
then
oc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
1
,
fid
)
og
:
RemoveCard
(
oc
)
else
oc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
1
,
fid
)
end
oc
=
og
:
GetNext
()
oc
=
og
:
GetNext
()
end
end
og
:
KeepAlive
()
og
:
KeepAlive
()
...
...
c74659582.lua
View file @
3f3aa080
...
@@ -58,12 +58,11 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,12 +58,11 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Group
.
FromCards
(
tc
,
c
)
local
g
=
Group
.
FromCards
(
tc
,
c
)
if
Duel
.
Remove
(
g
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
and
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_REMOVED
)
then
if
Duel
.
Remove
(
g
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
and
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_REMOVED
)
then
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_REMOVED
)
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_REMOVED
)
if
c
:
GetOriginalCode
()
~=
id
then
og
:
RemoveCard
(
c
)
end
for
oc
in
aux
.
Next
(
og
)
do
for
oc
in
aux
.
Next
(
og
)
do
if
oc
==
c
and
oc
:
GetOriginalCode
()
~=
id
then
oc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
og
:
RemoveCard
(
oc
)
else
oc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
og
:
KeepAlive
()
og
:
KeepAlive
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c80335817.lua
View file @
3f3aa080
...
@@ -71,13 +71,12 @@ function c80335817.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,13 +71,12 @@ function c80335817.rmop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Group
.
FromCards
(
c
,
tc
)
local
g
=
Group
.
FromCards
(
c
,
tc
)
if
Duel
.
Remove
(
g
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
if
Duel
.
Remove
(
g
,
0
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
if
c
:
GetOriginalCode
()
~=
id
then
og
:
RemoveCard
(
c
)
end
local
oc
=
og
:
GetFirst
()
local
oc
=
og
:
GetFirst
()
while
oc
do
while
oc
do
if
oc
==
c
and
oc
:
GetOriginalCode
()
~=
id
then
oc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
1
)
og
:
RemoveCard
(
oc
)
else
oc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
1
)
end
oc
=
og
:
GetNext
()
oc
=
og
:
GetNext
()
end
end
og
:
KeepAlive
()
og
:
KeepAlive
()
...
...
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