Disable speaking while unconscious/dead (#362)
* Disable speaking while unconscious/dead Fixes #359 * Add CanSpeak ActionBlocker Matches the existing technique for other actions like CanUse() and CanThrow().
This commit is contained in:
committed by
Pieter-Jan Briers
parent
3e972b501a
commit
31487c1cf1
@@ -82,6 +82,11 @@ namespace Content.Server.GameObjects
|
||||
return CurrentDamageState.CanThrow();
|
||||
}
|
||||
|
||||
bool IActionBlocker.CanSpeak()
|
||||
{
|
||||
return CurrentDamageState.CanSpeak();
|
||||
}
|
||||
|
||||
List<DamageThreshold> IOnDamageBehavior.GetAllDamageThresholds()
|
||||
{
|
||||
var thresholdlist = DamageTemplate.DamageThresholds;
|
||||
|
||||
Reference in New Issue
Block a user