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
1be62b3d
Commit
1be62b3d
authored
Aug 16, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
0f2ab337
b5f28bc4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
9 deletions
+5
-9
card.h
card.h
+1
-1
effect.cpp
effect.cpp
+2
-2
effect.h
effect.h
+1
-1
operations.cpp
operations.cpp
+1
-4
processor.cpp
processor.cpp
+0
-1
No files found.
card.h
View file @
1be62b3d
...
@@ -382,7 +382,7 @@ public:
...
@@ -382,7 +382,7 @@ public:
#define STATUS_FUTURE_FUSION 0x100000
#define STATUS_FUTURE_FUSION 0x100000
#define STATUS_ATTACK_CANCELED 0x200000
#define STATUS_ATTACK_CANCELED 0x200000
#define STATUS_INITIALIZING 0x400000
#define STATUS_INITIALIZING 0x400000
#define STATUS_ACTIVATED 0x800000
//
#define STATUS_ACTIVATED 0x800000
#define STATUS_JUST_POS 0x1000000
#define STATUS_JUST_POS 0x1000000
#define STATUS_CONTINUOUS_POS 0x2000000
#define STATUS_CONTINUOUS_POS 0x2000000
#define STATUS_FORBIDDEN 0x4000000
#define STATUS_FORBIDDEN 0x4000000
...
...
effect.cpp
View file @
1be62b3d
...
@@ -132,7 +132,7 @@ int32 effect::is_available() {
...
@@ -132,7 +132,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
)
&&
!
is_flag
(
EFFECT_FLAG_AVAILABLE_BD
)
)
if
(
phandler
->
is_status
(
STATUS_BATTLE_DESTROYED
))
return
FALSE
;
return
FALSE
;
}
}
}
}
...
@@ -275,7 +275,7 @@ int32 effect::is_activateable(uint8 playerid, const tevent& e, int32 neglect_con
...
@@ -275,7 +275,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
(
!
is_flag
(
EFFECT_FLAG_AVAILABLE_BD
)
&&
(
type
&
EFFECT_TYPE_FIELD
)
&&
phandler
->
is_status
(
STATUS_BATTLE_DESTROYED
))
if
((
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 @
1be62b3d
...
@@ -182,7 +182,7 @@ enum effect_flag : uint32 {
...
@@ -182,7 +182,7 @@ enum effect_flag : uint32 {
EFFECT_FLAG_NO_TURN_RESET
=
0x400000
,
EFFECT_FLAG_NO_TURN_RESET
=
0x400000
,
EFFECT_FLAG_EVENT_PLAYER
=
0x800000
,
EFFECT_FLAG_EVENT_PLAYER
=
0x800000
,
EFFECT_FLAG_OWNER_RELATE
=
0x1000000
,
EFFECT_FLAG_OWNER_RELATE
=
0x1000000
,
EFFECT_FLAG_AVAILABLE_BD
=
0x2000000
,
//
EFFECT_FLAG_AVAILABLE_BD = 0x2000000,
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
,
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
,
// EFFECT_FLAG_CHAIN_UNIQUE = 0x8000000,
// EFFECT_FLAG_CHAIN_UNIQUE = 0x8000000,
// EFFECT_FLAG_NAGA = 0x10000000,
// EFFECT_FLAG_NAGA = 0x10000000,
...
...
operations.cpp
View file @
1be62b3d
...
@@ -4358,10 +4358,7 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
...
@@ -4358,10 +4358,7 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
pzone
=
TRUE
;
pzone
=
TRUE
;
move_card
(
playerid
,
target
,
location
,
target
->
temp
.
sequence
,
pzone
);
move_card
(
playerid
,
target
,
location
,
target
->
temp
.
sequence
,
pzone
);
target
->
current
.
position
=
returns
.
ivalue
[
0
];
target
->
current
.
position
=
returns
.
ivalue
[
0
];
if
((
target
->
previous
.
location
&
LOCATION_ONFIELD
)
&&
(
location
&
LOCATION_ONFIELD
))
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
,
FALSE
);
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
,
FALSE
);
else
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
|
STATUS_ACTIVATED
,
FALSE
);
pduel
->
write_buffer32
(
target
->
get_info_location
());
pduel
->
write_buffer32
(
target
->
get_info_location
());
pduel
->
write_buffer32
(
target
->
current
.
reason
);
pduel
->
write_buffer32
(
target
->
current
.
reason
);
if
((
target
->
current
.
location
!=
LOCATION_MZONE
))
{
if
((
target
->
current
.
location
!=
LOCATION_MZONE
))
{
...
...
processor.cpp
View file @
1be62b3d
...
@@ -4662,7 +4662,6 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
...
@@ -4662,7 +4662,6 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
effect
*
peffect
=
cait
->
triggering_effect
;
effect
*
peffect
=
cait
->
triggering_effect
;
card
*
pcard
=
peffect
->
get_handler
();
card
*
pcard
=
peffect
->
get_handler
();
if
((
peffect
->
type
&
EFFECT_TYPE_ACTIVATE
)
&&
pcard
->
is_has_relation
(
*
cait
))
{
if
((
peffect
->
type
&
EFFECT_TYPE_ACTIVATE
)
&&
pcard
->
is_has_relation
(
*
cait
))
{
pcard
->
set_status
(
STATUS_ACTIVATED
,
TRUE
);
pcard
->
enable_field_effect
(
true
);
pcard
->
enable_field_effect
(
true
);
if
(
core
.
duel_rule
<=
2
)
{
if
(
core
.
duel_rule
<=
2
)
{
if
(
pcard
->
data
.
type
&
TYPE_FIELD
)
{
if
(
pcard
->
data
.
type
&
TYPE_FIELD
)
{
...
...
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