mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 09:52:19 +00:00
only allow donation to teammates
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user