Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
9853365e
Commit
9853365e
authored
Jun 06, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6287b312
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ocgcore/effect.cpp
ocgcore/effect.cpp
+1
-1
script/c43175858.lua
script/c43175858.lua
+1
-1
No files found.
ocgcore/effect.cpp
View file @
9853365e
...
...
@@ -65,7 +65,7 @@ int32 effect::is_available() {
if
((
flag
&
EFFECT_FLAG_SINGLE_RANGE
)
&&
!
in_range
(
handler
->
current
.
location
,
handler
->
current
.
sequence
))
return
FALSE
;
if
((
flag
&
EFFECT_FLAG_SINGLE_RANGE
)
&&
(
handler
->
current
.
location
&
LOCATION_ONFIELD
)
&&
(
handler
->
is_position
(
POS_FACEDOWN
)
||
!
handler
->
is_status
(
STATUS_EFFECT_ENABLED
)))
&&
(
handler
->
is_position
(
POS_FACEDOWN
)
||
(
!
handler
->
is_status
(
STATUS_EFFECT_ENABLED
)
&&
!
(
flag
&
EFFECT_FLAG_IMMEDIATELY_APPLY
)
)))
return
FALSE
;
if
((
flag
&
EFFECT_FLAG_OWNER_RELATE
)
&&
!
(
flag
&
EFFECT_FLAG_CANNOT_DISABLE
)
&&
owner
->
is_status
(
STATUS_DISABLED
))
return
FALSE
;
...
...
script/c43175858.lua
View file @
9853365e
...
...
@@ -12,7 +12,7 @@ function c43175858.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CHANGE_CODE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IMMEDIATELY_APPLY
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetValue
(
15259703
)
c
:
RegisterEffect
(
e2
)
...
...
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