MCPcopy Index your code
hub / github.com/codecombat/codecombat / ownsHero

Method ownsHero

app/models/User.js:484–487  ·  view source on GitHub ↗
(heroOriginal)

Source from the content-addressed store, hash-verified

482 }
483
484 ownsHero (heroOriginal) {
485 const needle = heroOriginal
486 return this.isInGodMode() || this.heroes().includes(needle)
487 }
488
489 ownsItem (itemOriginal) {
490 const needle = itemOriginal

Callers 1

formatHeroMethod · 0.80

Calls 2

isInGodModeMethod · 0.95
heroesMethod · 0.95

Tested by

no test coverage detected