Skip to content

Commit 5dc985f

Browse files
committed
fix: spawn block
Better handling for block respawns feature.
1 parent b0f28af commit 5dc985f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/creatures/monsters/spawns/spawn_monster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ void SpawnMonster::checkSpawnMonster() {
309309
if (!mType) {
310310
continue;
311311
}
312-
if (!mType->canSpawn(sb.pos) || (mType->info.isBlockable && findPlayer(sb.pos))) {
312+
if (!mType->canSpawn(sb.pos) || spawnBlockedByPlayer) {
313313
sb.lastSpawn = OTSYS_TIME();
314314
continue;
315315
}

0 commit comments

Comments
 (0)