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