Disallow finding enemy names by selecting them before the HUD is fully enabled.

This commit is contained in:
Nick Winter 2014-11-21 10:14:02 -08:00
parent 4de71507a8
commit 16a717aec1

View file

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