mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 06:32:26 +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;
|
return false;
|
||||||
}
|
}
|
||||||
if (faction.name === player.getGangFaction().name) {
|
if (player.inGang() && faction.name === player.getGangFaction().name) {
|
||||||
workerScript.log(
|
workerScript.log(
|
||||||
"donateToFaction",
|
"donateToFaction",
|
||||||
() => `You can't donate to '${name}' because youre managing a gang for it`,
|
() => `You can't donate to '${name}' because youre managing a gang for it`,
|
||||||
|
Loading…
Reference in New Issue
Block a user