Closed Moikapy closed 5 years ago
Added console.log() around the undeadActor to see what values it returned.(BELOW)
Returned (BELOW)
Added createActor to Skeletion item in Reanimate
export const reanimate = corpse => { let ctile = Game.map.data[corpse.y][corpse.x] // remove the corpse from the ground ctile.removeActor(corpse) Game.display.removeChild(corpse) let undeadActor = corpse.id === corpseTypes.HUMANOID ? createActor('ZOMBIE', corpse.x, corpse.y) : createActor('SKELETON', corpse.x, corpse.y) undeadActor.chasing = true ctile.actors.push(undeadActor) Game.display.assignSprite(undeadActor) Game.scheduler.add(undeadActor, true) }