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
List
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
nanahira
ygopro-core
Commits
28be7ba2
Commit
28be7ba2
authored
Jun 08, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-kaiser-mzone' of github.com:Fluorohydride/ygopro-core into patch-kaiser-mzone
parents
9e285715
43f70c5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
field.cpp
field.cpp
+3
-12
No files found.
field.cpp
View file @
28be7ba2
...
...
@@ -814,19 +814,10 @@ int32 field::get_szone_limit(uint8 playerid, uint8 uplayer, uint32 reason) {
int32 field::get_kaiser_limit(uint8 playerid, card_set* using_cards) {
if(!is_player_affected_by_effect(playerid, EFFECT_KAISER_COLOSSEUM))
return 0xff;
card_set
oppo_monsters
;
for
(
auto
&
pcard
:
player
[
1
-
playerid
].
list_mzone
)
{
if
(
pcard
)
oppo_monsters
.
insert
(
pcard
);
}
if
(
!
oppo_monsters
.
size
())
auto oppo_monster_count = filter_field_card(playerid, 0, LOCATION_MZONE, 0);
if(!oppo_monster_count)
return 0xff;
card_set
self_monsters
;
for
(
auto
&
pcard
:
player
[
playerid
].
list_mzone
)
{
if
(
pcard
)
self_monsters
.
insert
(
pcard
);
}
auto
limit
=
oppo_monsters
.
size
()
-
self_monsters
.
size
();
auto limit = oppo_monster_count - filter_field_card(playerid, LOCATION_MZONE, 0, 0);
for(auto& pcard : *using_cards) {
if(pcard->current.is_location(LOCATION_MZONE)) {
if(pcard->current.controler == playerid)
...
...
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