Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
0f070e8e
Commit
0f070e8e
authored
Feb 13, 2014
by
Fluorohydride
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quickplay
parent
b6727431
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ocgcore/effect.cpp
ocgcore/effect.cpp
+4
-2
ocgcore/effect.h
ocgcore/effect.h
+1
-0
No files found.
ocgcore/effect.cpp
View file @
0f070e8e
...
...
@@ -135,8 +135,10 @@ int32 effect::is_activateable(uint8 playerid, const tevent& e, int32 neglect_con
if
(
handler
->
current
.
location
==
LOCATION_HAND
)
{
if
((
handler
->
data
.
type
&
TYPE_TRAP
)
&&
!
handler
->
is_affected_by_effect
(
EFFECT_TRAP_ACT_IN_HAND
))
return
FALSE
;
if
((
handler
->
data
.
type
&
TYPE_SPELL
)
&&
(
pduel
->
game_field
->
infos
.
turn_player
!=
handler
->
current
.
controler
))
if
((
handler
->
data
.
type
&
TYPE_SPELL
)
&&
(
pduel
->
game_field
->
infos
.
turn_player
!=
handler
->
current
.
controler
))
{
if
(
!
(
handler
->
data
.
type
&
TYPE_QUICKPLAY
)
||
!
handler
->
is_affected_by_effect
(
EFFECT_QP_ACT_IN_NTPHAND
))
return
FALSE
;
}
if
(
!
(
handler
->
data
.
type
&
TYPE_FIELD
)
&&
pduel
->
game_field
->
get_useable_count
(
handler
->
current
.
controler
,
LOCATION_SZONE
,
handler
->
current
.
controler
,
LOCATION_REASON_TOFIELD
)
<=
0
)
return
FALSE
;
}
else
if
(
handler
->
current
.
location
==
LOCATION_SZONE
)
{
...
...
ocgcore/effect.h
View file @
0f070e8e
...
...
@@ -352,6 +352,7 @@ public:
#define EFFECT_UNIQUE_CHECK 297
#define EFFECT_MATCH_KILL 300
#define EFFECT_SYNCHRO_CHECK 310
#define EFFECT_QP_ACT_IN_NTPHAND 311
#define EVENT_STARTUP 1000
#define EVENT_FLIP 1001
...
...
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