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
5
Merge Requests
5
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
0988dc1c
Commit
0988dc1c
authored
Feb 10, 2025
by
mercury233
Committed by
GitHub
Feb 10, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Play the Diabell (#2839)
parent
8cbf204d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
c39881252.lua
c39881252.lua
+8
-3
No files found.
c39881252.lua
View file @
0988dc1c
...
...
@@ -26,9 +26,14 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
s
.
cfilter
(
c
,
re
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsReason
(
REASON_COST
)
and
re
:
IsActivated
()
and
(
not
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
or
c
:
GetPreviousTypeOnField
()
&
(
TYPE_SPELL
+
TYPE_TRAP
)
~=
0
)
if
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
not
c
:
IsReason
(
REASON_COST
)
then
return
false
end
if
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
GetPreviousTypeOnField
()
&
(
TYPE_SPELL
+
TYPE_TRAP
)
==
0
then
return
false
end
local
recode
=
re
:
GetCode
()
return
re
:
IsActivated
()
or
recode
==
EFFECT_TRAP_ACT_IN_HAND
or
recode
==
EFFECT_TRAP_ACT_IN_SET_TURN
or
recode
==
EFFECT_QP_ACT_IN_NTPHAND
or
recode
==
EFFECT_QP_ACT_IN_SET_TURN
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
,
re
)
...
...
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