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
f3f01cc1
Commit
f3f01cc1
authored
Mar 04, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add available_bd back
parent
83a3e621
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
effect.cpp
effect.cpp
+2
-2
effect.h
effect.h
+1
-0
No files found.
effect.cpp
View file @
f3f01cc1
...
@@ -129,7 +129,7 @@ int32 effect::is_available() {
...
@@ -129,7 +129,7 @@ int32 effect::is_available() {
return
FALSE
;
return
FALSE
;
if
(
powner
==
phandler
&&
!
is_flag
(
EFFECT_FLAG_CANNOT_DISABLE
)
&&
phandler
->
get_status
(
STATUS_DISABLED
))
if
(
powner
==
phandler
&&
!
is_flag
(
EFFECT_FLAG_CANNOT_DISABLE
)
&&
phandler
->
get_status
(
STATUS_DISABLED
))
return
FALSE
;
return
FALSE
;
if
(
phandler
->
is_status
(
STATUS_BATTLE_DESTROYED
))
if
(
phandler
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
!
is_flag
(
EFFECT_FLAG2_AVAILABLE_BD
)
)
return
FALSE
;
return
FALSE
;
}
}
}
}
...
@@ -285,7 +285,7 @@ int32 effect::is_activateable(uint8 playerid, const tevent& e, int32 neglect_con
...
@@ -285,7 +285,7 @@ int32 effect::is_activateable(uint8 playerid, const tevent& e, int32 neglect_con
return
FALSE
;
return
FALSE
;
}
else
{
}
else
{
card
*
phandler
=
get_handler
();
card
*
phandler
=
get_handler
();
if
((
type
&
EFFECT_TYPE_FIELD
)
&&
phandler
->
is_status
(
STATUS_BATTLE_DESTROYED
))
if
(
!
is_flag
(
EFFECT_FLAG2_AVAILABLE_BD
)
&&
(
type
&
EFFECT_TYPE_FIELD
)
&&
phandler
->
is_status
(
STATUS_BATTLE_DESTROYED
))
return
FALSE
;
return
FALSE
;
if
(((
type
&
EFFECT_TYPE_FIELD
)
||
((
type
&
EFFECT_TYPE_SINGLE
)
&&
is_flag
(
EFFECT_FLAG_SINGLE_RANGE
)))
&&
(
phandler
->
current
.
location
&
LOCATION_ONFIELD
)
if
(((
type
&
EFFECT_TYPE_FIELD
)
||
((
type
&
EFFECT_TYPE_SINGLE
)
&&
is_flag
(
EFFECT_FLAG_SINGLE_RANGE
)))
&&
(
phandler
->
current
.
location
&
LOCATION_ONFIELD
)
&&
(
!
phandler
->
is_position
(
POS_FACEUP
)
||
!
phandler
->
is_status
(
STATUS_EFFECT_ENABLED
)))
&&
(
!
phandler
->
is_position
(
POS_FACEUP
)
||
!
phandler
->
is_status
(
STATUS_EFFECT_ENABLED
)))
...
...
effect.h
View file @
f3f01cc1
...
@@ -212,6 +212,7 @@ enum effect_flag2 : uint32 {
...
@@ -212,6 +212,7 @@ enum effect_flag2 : uint32 {
// EFFECT_FLAG2_NAGA = 0x0001,
// EFFECT_FLAG2_NAGA = 0x0001,
EFFECT_FLAG2_COF
=
0x0002
,
EFFECT_FLAG2_COF
=
0x0002
,
EFFECT_FLAG2_SPOSITCH
=
0x0100
,
// flag2 from 0x0100 are koishipro use
EFFECT_FLAG2_SPOSITCH
=
0x0100
,
// flag2 from 0x0100 are koishipro use
EFFECT_FLAG2_AVAILABLE_BD
=
0x0101
,
};
};
inline
effect_flag
operator
|
(
effect_flag
flag1
,
effect_flag
flag2
)
inline
effect_flag
operator
|
(
effect_flag
flag1
,
effect_flag
flag2
)
{
{
...
...
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