From df342548b5fe8a27221b006069863325e4cbf84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Tue, 9 Jun 2020 02:35:12 +0200 Subject: [PATCH] Fix SpeciesComponent not taking state CanEquip/CanUnequip/CanChangeDirection into account --- .../Components/Mobs/SpeciesComponent.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Content.Server/GameObjects/Components/Mobs/SpeciesComponent.cs b/Content.Server/GameObjects/Components/Mobs/SpeciesComponent.cs index 14df66475a..d141742186 100644 --- a/Content.Server/GameObjects/Components/Mobs/SpeciesComponent.cs +++ b/Content.Server/GameObjects/Components/Mobs/SpeciesComponent.cs @@ -126,6 +126,21 @@ namespace Content.Server.GameObjects return CurrentDamageState.CanAttack(); } + bool IActionBlocker.CanEquip() + { + return CurrentDamageState.CanEquip(); + } + + bool IActionBlocker.CanUnequip() + { + return CurrentDamageState.CanUnequip(); + } + + bool IActionBlocker.CanChangeDirection() + { + return CurrentDamageState.CanChangeDirection(); + } + List IOnDamageBehavior.GetAllDamageThresholds() { var thresholdlist = DamageTemplate.DamageThresholds;