Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
Commits
1f45d40a
Commit
1f45d40a
authored
Dec 16, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix & update aux.SpiritReturnCondition
parent
114acd4a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
11 deletions
+17
-11
c25415052.lua
c25415052.lua
+2
-1
c44877690.lua
c44877690.lua
+5
-1
c52900000.lua
c52900000.lua
+2
-1
utility.lua
utility.lua
+8
-8
No files found.
c25415052.lua
View file @
1f45d40a
...
@@ -74,12 +74,13 @@ function c25415052.retreg(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,12 +74,13 @@ function c25415052.retreg(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
aux
.
SpiritReturnCondition
)
e1
:
SetCondition
(
aux
.
SpiritReturnCondition
Forced
)
e1
:
SetTarget
(
c25415052
.
rettg
)
e1
:
SetTarget
(
c25415052
.
rettg
)
e1
:
SetOperation
(
c25415052
.
retop
)
e1
:
SetOperation
(
c25415052
.
retop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCondition
(
aux
.
SpiritReturnConditionOptional
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c25415052
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25415052
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c44877690.lua
View file @
1f45d40a
...
@@ -54,7 +54,11 @@ function c44877690.cfilter(c)
...
@@ -54,7 +54,11 @@ function c44877690.cfilter(c)
end
end
function
c44877690
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44877690
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
c44877690
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
then
return
false
end
if
Duel
.
IsExistingMatchingCard
(
c44877690
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
then
return
false
end
return
aux
.
SpiritReturnCondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
aux
.
SpiritReturnConditionForced
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
else
return
aux
.
SpiritReturnConditionOptional
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
function
c44877690
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44877690
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
44877690
)
==
0
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
44877690
)
==
0
end
...
...
c52900000.lua
View file @
1f45d40a
...
@@ -65,12 +65,13 @@ function c52900000.retreg(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,12 +65,13 @@ function c52900000.retreg(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
aux
.
SpiritReturnCondition
)
e1
:
SetCondition
(
aux
.
SpiritReturnCondition
Forced
)
e1
:
SetTarget
(
c52900000
.
rettg
)
e1
:
SetTarget
(
c52900000
.
rettg
)
e1
:
SetOperation
(
c52900000
.
retop
)
e1
:
SetOperation
(
c52900000
.
retop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCondition
(
aux
.
SpiritReturnConditionOptional
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c52900000
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52900000
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
utility.lua
View file @
1f45d40a
...
@@ -162,29 +162,29 @@ function Auxiliary.SpiritReturnReg(e,tp,eg,ep,ev,re,r,rp)
...
@@ -162,29 +162,29 @@ function Auxiliary.SpiritReturnReg(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0xd6e0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0xd6e0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
Auxiliary
.
SpiritReturnCondition
1
)
e1
:
SetCondition
(
Auxiliary
.
SpiritReturnCondition
Forced
)
e1
:
SetTarget
(
Auxiliary
.
SpiritReturnTarget
1
)
e1
:
SetTarget
(
Auxiliary
.
SpiritReturnTarget
Forced
)
e1
:
SetOperation
(
Auxiliary
.
SpiritReturnOperation
)
e1
:
SetOperation
(
Auxiliary
.
SpiritReturnOperation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCondition
(
Auxiliary
.
SpiritReturnCondition
2
)
e2
:
SetCondition
(
Auxiliary
.
SpiritReturnCondition
Optional
)
e2
:
SetTarget
(
Auxiliary
.
SpiritReturnTarget
2
)
e2
:
SetTarget
(
Auxiliary
.
SpiritReturnTarget
Optional
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
Auxiliary
.
SpiritReturnCondition
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Auxiliary
.
SpiritReturnCondition
Forced
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
and
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
and
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
Auxiliary
.
SpiritReturnTarget
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
Auxiliary
.
SpiritReturnTarget
Forced
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
Auxiliary
.
SpiritReturnCondition
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Auxiliary
.
SpiritReturnCondition
Optional
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
and
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
and
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
Auxiliary
.
SpiritReturnTarget
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
Auxiliary
.
SpiritReturnTarget
Optional
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
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