Skip to content
Snippets Groups Projects
Commit 515afcb0 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@6035 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5fb83387
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ if zone == "Maj'Eyal" then
-- Spawn random encounters
local g = game.level.map(game.player.x, game.player.y, Map.TERRAIN)
if g and g.can_encounter then
if g and g.can_encounter and not game.player.no_worldmap_encounter then
local type = encounter_chance(game.player)
if type then
game.level:setEntitiesList("maj_eyal_encounters_rng", game.zone:computeRarities("maj_eyal_encounters_rng", game.level:getEntitiesList("maj_eyal_encounters"), game.level, nil))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment