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
2b2b091b
Commit
2b2b091b
authored
Apr 12, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type
parent
2ebfb5b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
effect.cpp
effect.cpp
+4
-4
effect.h
effect.h
+1
-1
No files found.
effect.cpp
View file @
2b2b091b
...
@@ -57,13 +57,13 @@ int32 effect::is_disable_related() {
...
@@ -57,13 +57,13 @@ int32 effect::is_disable_related() {
return
TRUE
;
return
TRUE
;
return
FALSE
;
return
FALSE
;
}
}
bool
effect
::
is_can_be_forbidden
()
{
int32
effect
::
is_can_be_forbidden
()
{
uint32
ctr
=
code
&
0xf0000
;
uint32
ctr
=
code
&
0xf0000
;
if
(
is_flag
(
EFFECT_FLAG_CANNOT_DISABLE
)
&&
!
is_flag
(
EFFECT_FLAG_CANNOT_NEGATED
))
if
(
is_flag
(
EFFECT_FLAG_CANNOT_DISABLE
)
&&
!
is_flag
(
EFFECT_FLAG_CANNOT_NEGATED
))
return
false
;
return
FALSE
;
if
(
code
==
EFFECT_CHANGE_CODE
||
ctr
==
EFFECT_COUNTER_PERMIT
||
ctr
==
EFFECT_COUNTER_LIMIT
)
if
(
code
==
EFFECT_CHANGE_CODE
||
ctr
==
EFFECT_COUNTER_PERMIT
||
ctr
==
EFFECT_COUNTER_LIMIT
)
return
false
;
return
FALSE
;
return
true
;
return
TRUE
;
}
}
// check if a single/field/equip effect is available
// check if a single/field/equip effect is available
// check properties: range, EFFECT_FLAG_OWNER_RELATE, STATUS_BATTLE_DESTROYED, STATUS_EFFECT_ENABLED, disabled/forbidden
// check properties: range, EFFECT_FLAG_OWNER_RELATE, STATUS_BATTLE_DESTROYED, STATUS_EFFECT_ENABLED, disabled/forbidden
...
...
effect.h
View file @
2b2b091b
...
@@ -63,7 +63,7 @@ public:
...
@@ -63,7 +63,7 @@ public:
~
effect
();
~
effect
();
int32
is_disable_related
();
int32
is_disable_related
();
bool
is_can_be_forbidden
();
int32
is_can_be_forbidden
();
int32
is_available
();
int32
is_available
();
int32
check_count_limit
(
uint8
playerid
);
int32
check_count_limit
(
uint8
playerid
);
int32
is_activateable
(
uint8
playerid
,
const
tevent
&
e
,
int32
neglect_cond
=
FALSE
,
int32
neglect_cost
=
FALSE
,
int32
neglect_target
=
FALSE
);
int32
is_activateable
(
uint8
playerid
,
const
tevent
&
e
,
int32
neglect_cond
=
FALSE
,
int32
neglect_cost
=
FALSE
,
int32
neglect_target
=
FALSE
);
...
...
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