diff --git a/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Enemies/Zombie.cs b/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Enemies/Zombie.cs index 67bc472..ae79885 100644 --- a/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Enemies/Zombie.cs +++ b/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Enemies/Zombie.cs @@ -93,7 +93,7 @@ namespace ZoFo.GameCore.GameObjects } public void EndAttack(string a) { - if (AppManager.Instance.gamestate != GameState.HostPlaying) return; + if (AppManager.Instance.server is null) return; var damagedPlayers=AppManager.Instance.server.collisionManager.GetPlayersInZone(collisionComponent.triggerRectangle.SetOrigin(position)); //TODO ДАМАЖИТЬ ИГРОКОВ В ЗОНЕ if (damagedPlayers.Length>0) { DebugHUD.DebugLog("End of" + a); diff --git a/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Player/Player.cs b/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Player/Player.cs index 0e829df..13a8b64 100644 --- a/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Player/Player.cs +++ b/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Player/Player.cs @@ -119,8 +119,8 @@ public class Player : LivingEntity break; case ScopeState.Right: case ScopeState.Left: - if (idName != "player_look_right") - StartAnimation("player_look_right"); + if (idName != "player_look_right_down_weapon") + StartAnimation("player_look_right_down_weapon"); break; case ScopeState.TopRight: case ScopeState.TopLeft: