mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 14:24:55 +02:00
fix parchment room quest demons spawning:
https://github.com/TwistedScorpio/Nostalrius/issues/18
This commit is contained in:
@@ -55,6 +55,17 @@ function Game.isPlayerThere(position)
|
||||
return false
|
||||
end
|
||||
|
||||
function Game.isMonsterThere(position, monsterName)
|
||||
local tile = Tile(position)
|
||||
local creatures = tile:getCreatures()
|
||||
for _, creature in ipairs(creatures) do
|
||||
if creature:isMonster() and creature:getName():lower() == monsterName:lower() then
|
||||
return creature
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
function Game.broadcastMessage(message, messageType)
|
||||
if messageType == nil then
|
||||
messageType = MESSAGE_STATUS_WARNING
|
||||
|
Reference in New Issue
Block a user