Skip to content

Commit

Permalink
shut up sail
Browse files Browse the repository at this point in the history
  • Loading branch information
giantcavespider committed Nov 17, 2024
1 parent a370a2c commit 4fe1822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stats/effects/erchiussickness/erchiussickness.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function init()
self.findMonster = util.uniqueEntityTracker(self.monsterUniqueId, 0.2)
self.saturation = 0
self.dps = 0
self.didSpawn = false

self.spawnTimer = 0.5
end
Expand Down Expand Up @@ -55,7 +56,7 @@ function update(dt)

local monsterPosition = self.findMonster()
if monsterPosition then
if not self.messaged then
if not self.messaged and self.didSpawn then
world.sendEntityMessage(entity.id(), "queueRadioMessage", "erchiussickness")
self.messaged = true
end
Expand Down Expand Up @@ -99,6 +100,7 @@ function update(dt)
keepAlive = true
}
world.spawnMonster(self.spawnGhost, vec2.add(mcontroller.position(), config.getParameter("ghostSpawnOffset")), parameters)
self.didSpawn = true
self.spawnTimer = 1.0
end
end
Expand Down

0 comments on commit 4fe1822

Please sign in to comment.