only allow donation to teammates

This commit is contained in:
evan
2025-05-09 10:48:29 -07:00
parent 42b998e9d9
commit 697408006a
+1 -1
View File
@@ -527,7 +527,7 @@ export class PlayerImpl implements Player {
}
canDonate(recipient: Player): boolean {
if (!this.isFriendly(recipient)) {
if (!this.isOnSameTeam(recipient)) {
return false;
}
for (const donation of this.sentDonations) {