mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-04 12:40:20 +00:00
replenishing supply of thrown grenades from player inventory; pulled in locker search for Player.Find to avoid wrongful indexing
This commit is contained in:
parent
ddf2f53d8a
commit
ba49b5859e
2 changed files with 55 additions and 5 deletions
|
|
@ -200,10 +200,7 @@ class Player(private val core : Avatar) extends PlanetSideGameObject with Factio
|
|||
case Some(index) =>
|
||||
Some(index)
|
||||
case None =>
|
||||
if(Locker.Find(guid).isDefined) {
|
||||
Some(5)
|
||||
}
|
||||
else if(freeHand.Equipment.isDefined && freeHand.Equipment.get.GUID == guid) {
|
||||
if(freeHand.Equipment.isDefined && freeHand.Equipment.get.GUID == guid) {
|
||||
Some(Player.FreeHandSlot)
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue