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
08da17f9
Commit
08da17f9
authored
Apr 01, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove FLIP_SET_AVAILABLE
face down card cannot activate effect generally 硫酸のたまった落とし穴 is not special now
parent
a3465f5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
6 deletions
+1
-6
common.h
common.h
+0
-1
effect.cpp
effect.cpp
+1
-4
libduel.cpp
libduel.cpp
+0
-1
No files found.
common.h
View file @
08da17f9
...
@@ -62,7 +62,6 @@ struct card_sort {
...
@@ -62,7 +62,6 @@ struct card_sort {
#define POS_DEFENSE 0xc
#define POS_DEFENSE 0xc
//Flip effect flags
//Flip effect flags
#define NO_FLIP_EFFECT 0x10000
#define NO_FLIP_EFFECT 0x10000
#define FLIP_SET_AVAILABLE 0x20000
//Types
//Types
#define TYPE_MONSTER 0x1 //
#define TYPE_MONSTER 0x1 //
...
...
effect.cpp
View file @
08da17f9
...
@@ -262,10 +262,7 @@ int32 effect::is_activateable(uint8 playerid, const tevent& e, int32 neglect_con
...
@@ -262,10 +262,7 @@ int32 effect::is_activateable(uint8 playerid, const tevent& e, int32 neglect_con
if
(
!
(
phandler
->
get_type
()
&
TYPE_MONSTER
)
&&
(
get_active_type
()
&
TYPE_MONSTER
))
if
(
!
(
phandler
->
get_type
()
&
TYPE_MONSTER
)
&&
(
get_active_type
()
&
TYPE_MONSTER
))
return
FALSE
;
return
FALSE
;
if
(
!
neglect_faceup
&&
(
phandler
->
current
.
location
&
(
LOCATION_ONFIELD
|
LOCATION_REMOVED
)))
{
if
(
!
neglect_faceup
&&
(
phandler
->
current
.
location
&
(
LOCATION_ONFIELD
|
LOCATION_REMOVED
)))
{
// effects which can be activated while face-down:
if
(
!
phandler
->
is_position
(
POS_FACEUP
)
&&
!
is_flag
(
EFFECT_FLAG_SET_AVAILABLE
))
// 1. effects with EFFECT_FLAG_SET_AVAILABLE
// 2. events with FLIP_SET_AVAILABLE
if
(
!
phandler
->
is_position
(
POS_FACEUP
)
&&
!
is_flag
(
EFFECT_FLAG_SET_AVAILABLE
)
&&
(
code
!=
EVENT_FLIP
||
!
(
e
.
event_value
&
(
FLIP_SET_AVAILABLE
>>
16
))))
return
FALSE
;
return
FALSE
;
if
(
phandler
->
is_position
(
POS_FACEUP
)
&&
!
phandler
->
is_status
(
STATUS_EFFECT_ENABLED
))
if
(
phandler
->
is_position
(
POS_FACEUP
)
&&
!
phandler
->
is_status
(
STATUS_EFFECT_ENABLED
))
return
FALSE
;
return
FALSE
;
...
...
libduel.cpp
View file @
08da17f9
...
@@ -715,7 +715,6 @@ int32 scriptlib::duel_change_form(lua_State *L) {
...
@@ -715,7 +715,6 @@ int32 scriptlib::duel_change_form(lua_State *L) {
if
(
top
>
3
)
du
=
(
uint32
)
lua_tointeger
(
L
,
4
);
if
(
top
>
3
)
du
=
(
uint32
)
lua_tointeger
(
L
,
4
);
if
(
top
>
4
)
dd
=
(
uint32
)
lua_tointeger
(
L
,
5
);
if
(
top
>
4
)
dd
=
(
uint32
)
lua_tointeger
(
L
,
5
);
if
(
top
>
5
&&
lua_toboolean
(
L
,
6
))
flag
|=
NO_FLIP_EFFECT
;
if
(
top
>
5
&&
lua_toboolean
(
L
,
6
))
flag
|=
NO_FLIP_EFFECT
;
if
(
top
>
6
&&
lua_toboolean
(
L
,
7
))
flag
|=
FLIP_SET_AVAILABLE
;
if
(
pcard
)
{
if
(
pcard
)
{
field
::
card_set
cset
;
field
::
card_set
cset
;
cset
.
insert
(
pcard
);
cset
.
insert
(
pcard
);
...
...
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