LiveMonster
class LiveMonster extends LiveEntity<MonsterData>
Defined in monster.ts:114
Properties
aggressive
readonly aggressive: boolean
alive
readonly alive: boolean
auras
readonly auras: readonly LiveAura[]
cell
readonly cell: string
dead
readonly dead: boolean
drops
Server-provided drops discovered while sharing a cell with this monster.
readonly drops: readonly MonsterDrop[]
hp
readonly hp: number
hpPercent
readonly hpPercent: number
idle
readonly idle: boolean
inCombat
readonly inCombat: boolean
level
readonly level: number
maxHp
readonly maxHp: number
maxMp
readonly maxMp: number
monsterId
readonly monsterId: number
monsterMapId
readonly monsterMapId: number
mp
readonly mp: number
mpPercent
readonly mpPercent: number
name
readonly name: string
race
readonly race: string
state
readonly state: EntityState
Methods
getAura()
getAura(name: string, options?: AuraQueryOptions): LiveAura | null
hasAura()
hasAura(name: string, options?: AuraQueryOptions): boolean
isInCell()
isInCell(cell: string): boolean
matches()
matches(selector: MonsterQuery): boolean
toJSON()
toJSON(): MonsterSnapshot