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
3
Merge Requests
3
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
0adf1b63
Commit
0adf1b63
authored
Jan 01, 2025
by
wind2009
Committed by
GitHub
Jan 01, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EFFECT_CANNOT_DISCARD_HAND (#2805)
* Fix EFFECT_CANNOT_DISCARD_HAND * Fix
parent
19da76d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
c425934.lua
c425934.lua
+4
-0
c49655592.lua
c49655592.lua
+4
-0
No files found.
c425934.lua
View file @
0adf1b63
...
...
@@ -8,6 +8,10 @@ function c425934.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetCode
(
EFFECT_CANNOT_DISCARD_HAND
)
e1
:
SetTarget
(
c425934
.
target
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
end
function
c425934
.
target
(
e
,
dc
,
re
,
r
)
return
r
&
REASON_COST
==
REASON_COST
end
c49655592.lua
View file @
0adf1b63
...
...
@@ -47,6 +47,7 @@ function c49655592.initial_effect(c)
e5
:
SetTargetRange
(
0
,
1
)
e5
:
SetCode
(
EFFECT_CANNOT_DISCARD_HAND
)
e5
:
SetCondition
(
c49655592
.
excon
)
e5
:
SetTarget
(
c49655592
.
extarget
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -95,3 +96,6 @@ end
function
c49655592
.
excon
(
e
)
return
e
:
GetHandler
():
IsLevelAbove
(
7
)
end
function
c49655592
.
extarget
(
e
,
dc
,
re
,
r
)
return
r
&
REASON_COST
==
REASON_COST
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