Skip to content
Snippets Groups Projects
Commit 263233a6 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3425 51575b47-30f0-44d4-a5cc-537603b46e54
parent 15fb6046
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,10 @@ newEntity{
if not game.level.allow_demon_plane_damage then return end
local DT = engine.DamageType
local dam = DT:get(DT.DEMONFIRE).projector(game.level.plane_owner, x, y, DT.DEMONFIRE, game.level.demonfire_dam or 1)
if dam > 0 then game.logPlayer(who, "The lava burns you!")
elseif dam < 0 then game.logPlayer(who, "The lava heals you!") end
if dam then
if dam > 0 then game.logPlayer(who, "The lava burns you!")
elseif dam < 0 then game.logPlayer(who, "The lava heals you!") end
end
end,
}
......
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