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
f7089e78
Commit
f7089e78
authored
Sep 26, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert
parent
6a44f18c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
effect.h
effect.h
+1
-0
libduel.cpp
libduel.cpp
+2
-1
processor.cpp
processor.cpp
+2
-1
No files found.
effect.h
View file @
f7089e78
...
@@ -381,6 +381,7 @@ public:
...
@@ -381,6 +381,7 @@ public:
#define EFFECT_ADD_SETCODE 334
#define EFFECT_ADD_SETCODE 334
#define EFFECT_NO_EFFECT_DAMAGE 335
#define EFFECT_NO_EFFECT_DAMAGE 335
#define EFFECT_UNSUMMONABLE_CARD 336
#define EFFECT_UNSUMMONABLE_CARD 336
#define EFFECT_DISABLE_CHAIN_FIELD 337
#define EVENT_STARTUP 1000
#define EVENT_STARTUP 1000
#define EVENT_FLIP 1001
#define EVENT_FLIP 1001
...
...
libduel.cpp
View file @
f7089e78
...
@@ -1256,6 +1256,7 @@ int32 scriptlib::duel_negate_effect(lua_State *L) {
...
@@ -1256,6 +1256,7 @@ int32 scriptlib::duel_negate_effect(lua_State *L) {
lua_pushboolean
(
L
,
pduel
->
game_field
->
disable_chain
(
c
));
lua_pushboolean
(
L
,
pduel
->
game_field
->
disable_chain
(
c
));
return
1
;
return
1
;
}
}
// negate the effects activated on field
int32
scriptlib
::
duel_negate_related_chain
(
lua_State
*
L
)
{
int32
scriptlib
::
duel_negate_related_chain
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
...
@@ -1269,7 +1270,7 @@ int32 scriptlib::duel_negate_related_chain(lua_State *L) {
...
@@ -1269,7 +1270,7 @@ int32 scriptlib::duel_negate_related_chain(lua_State *L) {
effect
*
negeff
=
pduel
->
new_effect
();
effect
*
negeff
=
pduel
->
new_effect
();
negeff
->
owner
=
pduel
->
game_field
->
core
.
reason_effect
->
handler
;
negeff
->
owner
=
pduel
->
game_field
->
core
.
reason_effect
->
handler
;
negeff
->
type
=
EFFECT_TYPE_SINGLE
;
negeff
->
type
=
EFFECT_TYPE_SINGLE
;
negeff
->
code
=
EFFECT_DISABLE_CHAIN
;
negeff
->
code
=
EFFECT_DISABLE_CHAIN
_FIELD
;
negeff
->
reset_flag
=
RESET_CHAIN
|
RESET_EVENT
|
reset_flag
;
negeff
->
reset_flag
=
RESET_CHAIN
|
RESET_EVENT
|
reset_flag
;
pcard
->
add_effect
(
negeff
);
pcard
->
add_effect
(
negeff
);
return
0
;
return
0
;
...
...
processor.cpp
View file @
f7089e78
...
@@ -4564,7 +4564,8 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
...
@@ -4564,7 +4564,8 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
card
*
pcard
=
cait
->
triggering_effect
->
handler
;
card
*
pcard
=
cait
->
triggering_effect
->
handler
;
if
(
is_chain_disablable
(
cait
->
chain_count
))
{
if
(
is_chain_disablable
(
cait
->
chain_count
))
{
if
((
cait
->
flag
&
CHAIN_DISABLE_EFFECT
)
||
pcard
->
is_affected_by_effect
(
EFFECT_DISABLE_CHAIN
)
if
((
cait
->
flag
&
CHAIN_DISABLE_EFFECT
)
||
pcard
->
is_affected_by_effect
(
EFFECT_DISABLE_CHAIN
)
||
(
pcard
->
is_status
(
STATUS_DISABLED
)
&&
pcard
->
is_has_relation
(
cait
->
triggering_effect
)))
{
||
((
cait
->
triggering_location
&
LOCATION_ONFIELD
)
&&
pcard
->
is_affected_by_effect
(
EFFECT_DISABLE_CHAIN_FIELD
))
||
(
pcard
->
is_status
(
STATUS_DISABLED
)
&&
pcard
->
is_has_relation
(
cait
->
triggering_effect
)))
{
if
(
!
(
cait
->
flag
&
CHAIN_DISABLE_EFFECT
))
{
if
(
!
(
cait
->
flag
&
CHAIN_DISABLE_EFFECT
))
{
pduel
->
write_buffer8
(
MSG_CHAIN_DISABLED
);
pduel
->
write_buffer8
(
MSG_CHAIN_DISABLED
);
pduel
->
write_buffer8
(
cait
->
chain_count
);
pduel
->
write_buffer8
(
cait
->
chain_count
);
...
...
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