mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-31 07:12:49 -04:00
Disallow finding enemy names by selecting them before the HUD is fully enabled.
This commit is contained in:
parent
4de71507a8
commit
16a717aec1
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ module.exports = class LevelHUDView extends CocoView
|
|||
setThang: (thang, thangType) ->
|
||||
if not thang? and not @thang? then return
|
||||
if thang? and @thang? and thang.id is @thang.id then return
|
||||
if thang? and @hidesHUD and thang.id isnt 'Hero Placeholder' then return # Don't let them find the names of their opponents this way
|
||||
@thang = thang
|
||||
@thangType = thangType
|
||||
return unless @thang
|
||||
|
|
Loading…
Add table
Reference in a new issue