Fix lib.element.player.isFriendOf.
This commit is contained in:
parent
2f7dc5fbe7
commit
2da11b90f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue