Fix SpeciesComponent not taking state CanEquip/CanUnequip/CanChangeDirection into account

This commit is contained in:
Víctor Aguilera Puerto
2020-06-09 02:35:12 +02:00
parent 772010d4f0
commit df342548b5

View File

@@ -126,6 +126,21 @@ namespace Content.Server.GameObjects
return CurrentDamageState.CanAttack(); return CurrentDamageState.CanAttack();
} }
bool IActionBlocker.CanEquip()
{
return CurrentDamageState.CanEquip();
}
bool IActionBlocker.CanUnequip()
{
return CurrentDamageState.CanUnequip();
}
bool IActionBlocker.CanChangeDirection()
{
return CurrentDamageState.CanChangeDirection();
}
List<DamageThreshold> IOnDamageBehavior.GetAllDamageThresholds() List<DamageThreshold> IOnDamageBehavior.GetAllDamageThresholds()
{ {
var thresholdlist = DamageTemplate.DamageThresholds; var thresholdlist = DamageTemplate.DamageThresholds;