mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-17 03:52:25 +08:00
完善多人世界队伍
This commit is contained in:
@@ -148,7 +148,7 @@ func (g *GameManager) CombatInvocationsNotify(player *model.Player, payloadMsg p
|
||||
if motionInfo.Pos == nil || motionInfo.Rot == nil {
|
||||
continue
|
||||
}
|
||||
activeAvatarId := player.TeamConfig.GetActiveAvatarId()
|
||||
activeAvatarId := world.GetPlayerActiveAvatarId(player)
|
||||
playerTeamEntity := scene.GetPlayerTeamEntity(player.PlayerID)
|
||||
playerActiveAvatarEntityId := playerTeamEntity.avatarEntityMap[activeAvatarId]
|
||||
if entityMoveInfo.EntityId == playerActiveAvatarEntityId {
|
||||
@@ -232,8 +232,7 @@ func (g *GameManager) CombatInvocationsNotify(player *model.Player, payloadMsg p
|
||||
}
|
||||
}
|
||||
// 把队伍中的其他非活跃角色也同步进行移动
|
||||
team := player.TeamConfig.GetActiveTeam()
|
||||
for _, avatarId := range team.AvatarIdList {
|
||||
for _, avatarId := range world.GetPlayerAvatarIdList(player) {
|
||||
// 跳过当前的活跃角色
|
||||
if avatarId == activeAvatarId {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user