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
42e67087
Commit
42e67087
authored
Apr 13, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ThisCardInGraveAlreadyCheckReg
parent
9f732816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
utility.lua
utility.lua
+5
-7
No files found.
utility.lua
View file @
42e67087
...
...
@@ -2981,6 +2981,7 @@ function Auxiliary.AddThisCardInGraveAlreadyCheck(c)
end
function
Auxiliary
.
ThisCardInGraveAlreadyCheckReg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--condition of continous effect will be checked before other effects
if
re
==
nil
then
return
false
end
if
e
:
GetLabelObject
()
~=
nil
then
return
false
end
if
(
r
&
REASON_EFFECT
)
>
0
then
e
:
SetLabelObject
(
re
)
...
...
@@ -2997,20 +2998,17 @@ function Auxiliary.ThisCardInGraveAlreadyCheckReg(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_CHAIN
)
e2
:
SetLabelObject
(
e1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
elseif
(
r
&
REASON_MATERIAL
)
>
0
or
re
and
not
re
:
IsActivated
()
and
(
r
&
REASON_COST
)
>
0
then
elseif
(
r
&
REASON_MATERIAL
)
>
0
or
not
re
:
IsActivated
()
and
(
r
&
REASON_COST
)
>
0
then
e
:
SetLabelObject
(
re
)
local
reset_event
=
EVENT_SPSUMMON
if
re
:
GetCode
()
~=
EFFECT_SPSUMMON_PROC
then
reset_event
=
EVENT_SUMMON
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SUMMON
)
e1
:
SetCode
(
reset_event
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetOperation
(
Auxiliary
.
ThisCardInGraveAlreadyReset1
)
e1
:
SetLabelObject
(
e
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON
)
e2
:
SetOperation
(
Auxiliary
.
ThisCardInGraveAlreadyReset2
)
e2
:
SetLabelObject
(
e1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
return
false
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