mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-19 18:14:44 +00:00
fix phantom listed squad
This commit is contained in:
parent
bcb3c43211
commit
89ac6ec48f
|
|
@ -1101,10 +1101,7 @@ class SquadService extends Actor {
|
|||
GetLeadingSquad(charId, pSquadOpt) match {
|
||||
case Some(_) =>
|
||||
//leader of a squad; the squad will be disbanded. Same logic as when a SL uses /leave and the squad is disbanded.
|
||||
PanicDisbandSquad(
|
||||
features,
|
||||
squad.Membership.collect { case member if member.CharId > 0 && member.CharId != charId => member.CharId }
|
||||
)
|
||||
DisbandSquad(features)
|
||||
case None =>
|
||||
//not the leader of a full squad; tell other members that we are leaving
|
||||
SquadSwitchboard.PanicLeaveSquad(
|
||||
|
|
@ -1118,10 +1115,7 @@ class SquadService extends Actor {
|
|||
}
|
||||
} else {
|
||||
//with only two members before our leave, the squad will be disbanded
|
||||
PanicDisbandSquad(
|
||||
features,
|
||||
squad.Membership.collect { case member if member.CharId > 0 && member.CharId != charId => member.CharId }
|
||||
)
|
||||
DisbandSquad(features)
|
||||
}
|
||||
case None =>
|
||||
//not a member of any squad; nothing really to do here
|
||||
|
|
|
|||
Loading…
Reference in a new issue