Fix lib.element.player.isFriendOf.

This commit is contained in:
Tipx-L 2023-09-01 03:21:42 -07:00
parent 2f7dc5fbe7
commit 2da11b90f3
1 changed files with 1 additions and 1 deletions

View File

@ -25318,7 +25318,7 @@
isFriendOf:function(player){
if(get.mode()=='guozhan'){
if(this==player) return true;
if(this.storage.yexinjia_friend==player||player.storage.yexinjia_friend==this) return true;
if(this.getStorage('yexinjia_friend').includes(player)||player.getStorage('yexinjia_friend').includes(this)) return true;
if(this.identity=='unknown'||this.identity=='ye') return false;
if(player.identity=='unknown'||player.identity=='ye') return false;
return this.identity==player.identity;