Add CanAttack to IActionBlocker, prevent using guns when dead (#769)

This commit is contained in:
Víctor Aguilera Puerto
2020-03-03 15:10:09 +01:00
committed by GitHub
parent 5e2cac78ac
commit d1ff84e95d
5 changed files with 37 additions and 2 deletions

View File

@@ -72,6 +72,11 @@ namespace Content.Server.GameObjects
{
return true;
}
bool IActionBlocker.CanAttack()
{
return true;
}
}
/// <summary>
@@ -128,6 +133,11 @@ namespace Content.Server.GameObjects
{
return false;
}
bool IActionBlocker.CanAttack()
{
return false;
}
}
/// <summary>
@@ -204,5 +214,10 @@ namespace Content.Server.GameObjects
{
return false;
}
bool IActionBlocker.CanAttack()
{
return false;
}
}
}