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
d0fb5bb6
Commit
d0fb5bb6
authored
Nov 07, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
4ff13c43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
effect.cpp
effect.cpp
+4
-1
No files found.
effect.cpp
View file @
d0fb5bb6
...
...
@@ -57,6 +57,8 @@ int32 effect::is_disable_related() {
return
TRUE
;
return
FALSE
;
}
// check if a single/field/field effect is available
// check range, EFFECT_FLAG_OWNER_RELATE, STATUS_BATTLE_DESTROYED, STATUS_EFFECT_ENABLED
int32
effect
::
is_available
()
{
if
(
type
&
EFFECT_TYPE_ACTIONS
)
return
FALSE
;
...
...
@@ -251,7 +253,7 @@ int32 effect::is_activateable(uint8 playerid, const tevent& e, int32 neglect_con
pduel
->
game_field
->
restore_lp_cost
();
return
result
;
}
// check EFFECT_CANNOT_ACTIVATE
// check EFFECT_CANNOT_ACTIVATE
, EFFECT_ACTIVATE_COST
int32
effect
::
is_action_check
(
uint8
playerid
)
{
effect_set
eset
;
pduel
->
game_field
->
filter_player_effect
(
playerid
,
EFFECT_CANNOT_ACTIVATE
,
&
eset
);
...
...
@@ -363,6 +365,7 @@ int32 effect::is_activate_check(uint8 playerid, const tevent& e, int32 neglect_c
pduel
->
game_field
->
restore_lp_cost
();
return
result
;
}
// check if pcard is the target of a field effect
int32
effect
::
is_target
(
card
*
pcard
)
{
if
(
type
&
EFFECT_TYPE_ACTIONS
)
return
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