mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 14:12:27 +01:00
Add check to see if player is in gang before getting Gang Faction
This commit is contained in:
parent
538a440b7e
commit
860e77f109
@ -1182,7 +1182,7 @@ export function NetscriptSingularity(
|
||||
);
|
||||
return false;
|
||||
}
|
||||
if (faction.name === player.getGangFaction().name) {
|
||||
if (player.inGang() && faction.name === player.getGangFaction().name) {
|
||||
workerScript.log(
|
||||
"donateToFaction",
|
||||
() => `You can't donate to '${name}' because youre managing a gang for it`,
|
||||
|
Loading…
Reference in New Issue
Block a user