fix panic + scope

This commit is contained in:
Giulio 2022-03-16 11:12:44 +01:00
parent 513fc00d49
commit a7e1e7c8ed

View File

@ -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,