Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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-core
Commits
fadb2195
You need to sign in or sign up before continuing.
Commit
fadb2195
authored
Oct 31, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
c221464b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
effect.cpp
effect.cpp
+2
-2
effect.h
effect.h
+3
-0
No files found.
effect.cpp
View file @
fadb2195
...
@@ -443,8 +443,8 @@ int32 effect::is_chainable(uint8 tp) {
...
@@ -443,8 +443,8 @@ int32 effect::is_chainable(uint8 tp) {
if
(
!
(
type
&
EFFECT_TYPE_ACTIONS
))
if
(
!
(
type
&
EFFECT_TYPE_ACTIONS
))
return
FALSE
;
return
FALSE
;
int32
sp
=
get_speed
();
int32
sp
=
get_speed
();
// Curse of Field
(12470447)
is the exception
// Curse of Field is the exception
if
((
type
&
EFFECT_TYPE_ACTIVATE
)
&&
(
sp
<=
1
)
&&
handler
->
data
.
code
!=
12470447
)
if
((
type
&
EFFECT_TYPE_ACTIVATE
)
&&
(
sp
<=
1
)
&&
handler
->
data
.
code
!=
CARD_COF
)
return
FALSE
;
return
FALSE
;
if
(
pduel
->
game_field
->
core
.
current_chain
.
size
())
{
if
(
pduel
->
game_field
->
core
.
current_chain
.
size
())
{
if
(
!
(
flag
&
EFFECT_FLAG_FIELD_ONLY
)
&&
(
type
&
EFFECT_TYPE_TRIGGER_O
)
if
(
!
(
flag
&
EFFECT_FLAG_FIELD_ONLY
)
&&
(
type
&
EFFECT_TYPE_TRIGGER_O
)
...
...
effect.h
View file @
fadb2195
...
@@ -88,6 +88,9 @@ public:
...
@@ -88,6 +88,9 @@ public:
int32
in_range
(
int32
loc
,
int32
seq
);
int32
in_range
(
int32
loc
,
int32
seq
);
};
};
//special cards
#define CARD_COF 12470447
//status
//status
#define EFFECT_STATUS_AVAILABLE 0x0001
#define EFFECT_STATUS_AVAILABLE 0x0001
#define EFFECT_STATUS_ACTIVATED 0x0002
#define EFFECT_STATUS_ACTIVATED 0x0002
...
...
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