mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
Disable damage on spectators (e.g. pain fields)
This commit is contained in:
parent
8228760b43
commit
449c727be7
|
|
@ -645,7 +645,7 @@ class PlayerControl(player: Player) extends Actor with JammableBehavior with Dam
|
|||
|
||||
protected def TakesDamage: Receive = {
|
||||
case Vitality.Damage(applyDamageTo) =>
|
||||
if (player.isAlive) {
|
||||
if (player.isAlive && !player.spectator) {
|
||||
val originalHealth = player.Health
|
||||
val originalArmor = player.Armor
|
||||
val originalStamina = player.Stamina
|
||||
|
|
|
|||
Loading…
Reference in a new issue