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
ae695015
Commit
ae695015
authored
Dec 01, 2015
by
Argon.Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6dc01bba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
operations.cpp
operations.cpp
+5
-20
No files found.
operations.cpp
View file @
ae695015
...
@@ -1504,10 +1504,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card * target, effect * proc,
...
@@ -1504,10 +1504,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card * target, effect * proc,
target
->
summon_player
=
sumplayer
;
target
->
summon_player
=
sumplayer
;
pduel
->
write_buffer8
(
MSG_SUMMONING
);
pduel
->
write_buffer8
(
MSG_SUMMONING
);
pduel
->
write_buffer32
(
target
->
data
.
code
);
pduel
->
write_buffer32
(
target
->
data
.
code
);
pduel
->
write_buffer8
(
target
->
current
.
controler
);
pduel
->
write_buffer32
(
target
->
get_info_location
());
pduel
->
write_buffer8
(
target
->
current
.
location
);
pduel
->
write_buffer8
(
target
->
current
.
sequence
);
pduel
->
write_buffer8
(
target
->
current
.
position
);
core
.
summon_state_count
[
sumplayer
]
++
;
core
.
summon_state_count
[
sumplayer
]
++
;
core
.
normalsummon_state_count
[
sumplayer
]
++
;
core
.
normalsummon_state_count
[
sumplayer
]
++
;
check_card_counter
(
target
,
1
,
sumplayer
);
check_card_counter
(
target
,
1
,
sumplayer
);
...
@@ -1632,10 +1629,7 @@ int32 field::flip_summon(uint16 step, uint8 sumplayer, card * target) {
...
@@ -1632,10 +1629,7 @@ int32 field::flip_summon(uint16 step, uint8 sumplayer, card * target) {
check_card_counter
(
target
,
4
,
sumplayer
);
check_card_counter
(
target
,
4
,
sumplayer
);
pduel
->
write_buffer8
(
MSG_FLIPSUMMONING
);
pduel
->
write_buffer8
(
MSG_FLIPSUMMONING
);
pduel
->
write_buffer32
(
target
->
data
.
code
);
pduel
->
write_buffer32
(
target
->
data
.
code
);
pduel
->
write_buffer8
(
target
->
current
.
controler
);
pduel
->
write_buffer32
(
target
->
get_info_location
());
pduel
->
write_buffer8
(
target
->
current
.
location
);
pduel
->
write_buffer8
(
target
->
current
.
sequence
);
pduel
->
write_buffer8
(
target
->
current
.
position
);
if
(
target
->
is_affected_by_effect
(
EFFECT_CANNOT_DISABLE_FLIP_SUMMON
))
if
(
target
->
is_affected_by_effect
(
EFFECT_CANNOT_DISABLE_FLIP_SUMMON
))
core
.
units
.
begin
()
->
step
=
2
;
core
.
units
.
begin
()
->
step
=
2
;
else
{
else
{
...
@@ -2183,10 +2177,7 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
...
@@ -2183,10 +2177,7 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
core
.
summoning_card
=
target
;
core
.
summoning_card
=
target
;
pduel
->
write_buffer8
(
MSG_SPSUMMONING
);
pduel
->
write_buffer8
(
MSG_SPSUMMONING
);
pduel
->
write_buffer32
(
target
->
data
.
code
);
pduel
->
write_buffer32
(
target
->
data
.
code
);
pduel
->
write_buffer8
(
target
->
current
.
controler
);
pduel
->
write_buffer32
(
target
->
get_info_location
());
pduel
->
write_buffer8
(
target
->
current
.
location
);
pduel
->
write_buffer8
(
target
->
current
.
sequence
);
pduel
->
write_buffer8
(
target
->
current
.
position
);
return
FALSE
;
return
FALSE
;
}
}
case
6
:
{
case
6
:
{
...
@@ -2342,10 +2333,7 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
...
@@ -2342,10 +2333,7 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
card
*
pcard
=
*
pgroup
->
it
++
;
card
*
pcard
=
*
pgroup
->
it
++
;
pduel
->
write_buffer8
(
MSG_SPSUMMONING
);
pduel
->
write_buffer8
(
MSG_SPSUMMONING
);
pduel
->
write_buffer32
(
pcard
->
data
.
code
);
pduel
->
write_buffer32
(
pcard
->
data
.
code
);
pduel
->
write_buffer8
(
pcard
->
current
.
controler
);
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
pduel
->
write_buffer8
(
pcard
->
current
.
location
);
pduel
->
write_buffer8
(
pcard
->
current
.
sequence
);
pduel
->
write_buffer8
(
pcard
->
current
.
position
);
if
(
pcard
->
owner
!=
pcard
->
current
.
controler
)
if
(
pcard
->
owner
!=
pcard
->
current
.
controler
)
set_control
(
pcard
,
pcard
->
current
.
controler
,
0
,
0
);
set_control
(
pcard
,
pcard
->
current
.
controler
,
0
,
0
);
if
(
pgroup
->
it
!=
pgroup
->
container
.
end
())
if
(
pgroup
->
it
!=
pgroup
->
container
.
end
())
...
@@ -2493,10 +2481,7 @@ int32 field::special_summon_step(uint16 step, group * targets, card * target) {
...
@@ -2493,10 +2481,7 @@ int32 field::special_summon_step(uint16 step, group * targets, card * target) {
case
2
:
{
case
2
:
{
pduel
->
write_buffer8
(
MSG_SPSUMMONING
);
pduel
->
write_buffer8
(
MSG_SPSUMMONING
);
pduel
->
write_buffer32
(
target
->
data
.
code
);
pduel
->
write_buffer32
(
target
->
data
.
code
);
pduel
->
write_buffer8
(
target
->
current
.
controler
);
pduel
->
write_buffer32
(
target
->
get_info_location
());
pduel
->
write_buffer8
(
target
->
current
.
location
);
pduel
->
write_buffer8
(
target
->
current
.
sequence
);
pduel
->
write_buffer8
(
target
->
current
.
position
);
return
FALSE
;
return
FALSE
;
}
}
case
3
:
{
case
3
:
{
...
...
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