Skip to content

Commit

Permalink
fix:修复服务端创建Unit时阵营分配错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wqaetly committed Mar 18, 2021
1 parent d535283 commit c79a34e
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 34 deletions.
Binary file modified Bin/App.dll
Binary file not shown.
Binary file modified Bin/Hotfix.dll
Binary file not shown.
2 changes: 0 additions & 2 deletions Server/.idea/.idea.Server/.idea/contentModel.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

4 changes: 2 additions & 2 deletions Server/Hotfix/NKGMOBA/Handler/Map/G2M_CreateUnitHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ protected override async ETTask Run(Session session, G2M_CreateUnit request, M2G
foreach (Unit u in units)
{
UnitInfo unitInfo = new UnitInfo();
if (targetUnit.Id == u.Id)
if (u.GetComponent<B2S_RoleCastComponent>() != null)
{
//TODO 诺手UnitTypeId暂定10001
unitInfo.UnitTypeId = 10001;
unitInfo.RoleCamp = (int)targetUnit.GetComponent<B2S_RoleCastComponent>().RoleCamp;
unitInfo.RoleCamp = (int) u.GetComponent<B2S_RoleCastComponent>().RoleCamp;
}

unitInfo.X = u.Position.x;
Expand Down
16 changes: 0 additions & 16 deletions Server/Hotfix/NKGMOBA/System/SessionPlayerComponentSystem.cs

This file was deleted.

0 comments on commit c79a34e

Please sign in to comment.