mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-12 19:31:04 +00:00
tying up some quirky cases where the the wrong tools elicited unexpected reactions from amenities (#385)
This commit is contained in:
parent
2f6af23207
commit
484fcbf56d
2 changed files with 25 additions and 20 deletions
|
|
@ -158,10 +158,12 @@ class PlayerControl(player : Player) extends Actor
|
|||
}
|
||||
}
|
||||
|
||||
case CommonMessages.Use(user, Some(item : Tool)) if item.Definition == GlobalDefinitions.medicalapplicator && !player.isAlive =>
|
||||
case CommonMessages.Use(user, Some(item : Tool)) if item.Definition == GlobalDefinitions.medicalapplicator =>
|
||||
//revive
|
||||
if(user != player && user.isAlive && !user.isMoving &&
|
||||
!player.isBackpack &&
|
||||
if(user != player &&
|
||||
user.Faction == player.Faction &&
|
||||
user.isAlive && !user.isMoving &&
|
||||
!player.isAlive && !player.isBackpack &&
|
||||
item.Magazine >= 25) {
|
||||
sender ! CommonMessages.Progress(
|
||||
4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue