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
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
Vee4
ygopro-scripts-888
Commits
c19d8319
Commit
c19d8319
authored
Nov 29, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix REASON_MAINTENANCE
parent
2c8280a0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
c65475294.lua
c65475294.lua
+3
-3
c69381150.lua
c69381150.lua
+3
-3
c70875955.lua
c70875955.lua
+4
-4
No files found.
c65475294.lua
View file @
c19d8319
...
...
@@ -16,9 +16,9 @@ function c65475294.costcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c65475294
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
CheckReleaseGroup
(
REASON_
COST
,
tp
,
nil
,
1
,
c
)
and
Duel
.
SelectEffectYesNo
(
tp
,
c
,
aux
.
Stringid
(
65475294
,
0
))
then
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_
COST
,
tp
,
nil
,
1
,
1
,
c
)
Duel
.
Release
(
g
,
REASON_
COST
)
if
Duel
.
CheckReleaseGroup
(
REASON_
MAINTENANCE
,
tp
,
nil
,
1
,
c
)
and
Duel
.
SelectEffectYesNo
(
tp
,
c
,
aux
.
Stringid
(
65475294
,
0
))
then
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_
MAINTENANCE
,
tp
,
nil
,
1
,
1
,
c
)
Duel
.
Release
(
g
,
REASON_
MAINTENANCE
)
else
Duel
.
Destroy
(
c
,
REASON_COST
)
end
...
...
c69381150.lua
View file @
c19d8319
...
...
@@ -79,8 +79,8 @@ end
function
c69381150
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
if
Duel
.
CheckReleaseGroup
(
REASON_
COST
,
tp
,
Card
.
IsType
,
1
,
nil
,
TYPE_LINK
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
69381150
,
0
))
then
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_
COST
,
tp
,
Card
.
IsType
,
1
,
1
,
nil
,
TYPE_LINK
)
Duel
.
Release
(
g
,
REASON_
COST
)
if
Duel
.
CheckReleaseGroup
(
REASON_
MAINTENANCE
,
tp
,
Card
.
IsType
,
1
,
nil
,
TYPE_LINK
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
69381150
,
0
))
then
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_
MAINTENANCE
,
tp
,
Card
.
IsType
,
1
,
1
,
nil
,
TYPE_LINK
)
Duel
.
Release
(
g
,
REASON_
MAINTENANCE
)
else
Duel
.
Destroy
(
c
,
REASON_COST
)
end
end
c70875955.lua
View file @
c19d8319
...
...
@@ -21,10 +21,10 @@ function c70875955.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
70875955
,
1
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCountLimit
(
1
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetOperation
(
c70875955
.
mtop
)
c
:
RegisterEffect
(
e3
)
end
...
...
@@ -45,10 +45,10 @@ function c70875955.rfilter(c)
return
c
:
IsType
(
TYPE_TOKEN
)
or
c
:
IsSetCard
(
0x101b
)
end
function
c70875955
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
CheckReleaseGroup
(
REASON_
COST
,
tp
,
c70875955
.
rfilter
,
1
,
nil
)
if
Duel
.
CheckReleaseGroup
(
REASON_
MAINTENANCE
,
tp
,
c70875955
.
rfilter
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
70875955
,
2
))
then
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_
COST
,
tp
,
c70875955
.
rfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_
RUL
E
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_
MAINTENANCE
,
tp
,
c70875955
.
rfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_
MAINTENANC
E
)
else
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_RULE
)
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