Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
889fdd05
Commit
889fdd05
authored
Nov 26, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updc
parent
8bdbeb7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ocgcore/processor.cpp
ocgcore/processor.cpp
+8
-2
No files found.
ocgcore/processor.cpp
View file @
889fdd05
...
@@ -4365,7 +4365,6 @@ int32 field::add_chain(uint16 step) {
...
@@ -4365,7 +4365,6 @@ int32 field::add_chain(uint16 step) {
phandler->set_status(STATUS_ACT_FROM_HAND, FALSE);
phandler->set_status(STATUS_ACT_FROM_HAND, FALSE);
change_position(phandler, 0, phandler->current.controler, POS_FACEUP, 0);
change_position(phandler, 0, phandler->current.controler, POS_FACEUP, 0);
}
}
clit.flag |= CHAIN_ACTIVATING;
}
}
if(phandler->current.location & (LOCATION_GRAVE | LOCATION_REMOVED))
if(phandler->current.location & (LOCATION_GRAVE | LOCATION_REMOVED))
move_card(phandler->current.controler, phandler, phandler->current.location, 0);
move_card(phandler->current.controler, phandler, phandler->current.location, 0);
...
@@ -4469,6 +4468,10 @@ int32 field::add_chain(uint16 step) {
...
@@ -4469,6 +4468,10 @@ int32 field::add_chain(uint16 step) {
clit.evt = ch.evt;
clit.evt = ch.evt;
phandler->create_relation(clit);
phandler->create_relation(clit);
peffect->dec_count(playerid);
peffect->dec_count(playerid);
if(!(peffect->type & EFFECT_TYPE_ACTIVATE)) {
peffect->type |= EFFECT_TYPE_ACTIVATE;
clit.flag |= CHAIN_ACTIVATING;
}
core.select_chains.clear();
core.select_chains.clear();
core.select_options.clear();
core.select_options.clear();
effect* deffect = pduel->new_effect();
effect* deffect = pduel->new_effect();
...
@@ -4731,6 +4734,9 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
...
@@ -4731,6 +4734,9 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
}
}
case 1: {
case 1: {
effect* peffect = cait->triggering_effect;
effect* peffect = cait->triggering_effect;
int32 activate = (peffect->type & EFFECT_TYPE_ACTIVATE);
if(activate && (cait->flag & CHAIN_ACTIVATING))
peffect->type &= ~EFFECT_TYPE_ACTIVATE;
if(cait->flag & CHAIN_DISABLE_ACTIVATE && is_chain_negatable(cait->chain_count)) {
if(cait->flag & CHAIN_DISABLE_ACTIVATE && is_chain_negatable(cait->chain_count)) {
remove_oath_effect(peffect);
remove_oath_effect(peffect);
if(peffect->is_flag(EFFECT_FLAG_COUNT_LIMIT) && (peffect->count_code & EFFECT_COUNT_CODE_OATH)) {
if(peffect->is_flag(EFFECT_FLAG_COUNT_LIMIT) && (peffect->count_code & EFFECT_COUNT_CODE_OATH)) {
...
@@ -4748,7 +4754,7 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
...
@@ -4748,7 +4754,7 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
break_effect();
break_effect();
core.chain_solving = TRUE;
core.chain_solving = TRUE;
card* pcard = peffect->get_handler();
card* pcard = peffect->get_handler();
if(
(cait->flag & CHAIN_ACTIVATING)
&& pcard->is_has_relation(*cait)) {
if(
activate
&& pcard->is_has_relation(*cait)) {
pcard->set_status(STATUS_ACTIVATED, TRUE);
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) {
...
...
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