Blizzard / Blizzard/s2client-api

The Unit.owner of a neutral units is 16, but Debug().DebugCreateUnit() can not create a unit whose owner is 16

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
280
PR merge metrics
No merged PRs in 30d

Description

I used `Debug()->DebugCreateUnit()` to create units by their information from one instance to a new game instance. But I found there are always fewer units created successfully.
Then I checked them and found no `Neutral` alliance unit was copied. Besides, the unit info shows that the `owner` of the original neutral units is 16. But you know, the highest player id is 15 in SC2Editor -- and the neutral player's id in it is 0.
So I tried to create a unit whose `owner` is 0, then I successed.
But it is still confusing. So I reported this issue here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.