fix panic + scope
This commit is contained in:
parent
513fc00d49
commit
a7e1e7c8ed
@ -238,7 +238,8 @@ export default {
|
|||||||
if (!this.can_target_sheriff && x.is_sheriff)
|
if (!this.can_target_sheriff && x.is_sheriff)
|
||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
return x.dist <= this.range
|
//console.log("aa" +(this.sight-1))
|
||||||
|
return x.dist <= this.range + this.sight -1
|
||||||
}).map(player => {
|
}).map(player => {
|
||||||
return {
|
return {
|
||||||
name: player.name,
|
name: player.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user