Skip to content
Snippets Groups Projects
Commit 32e47aac authored by DarkGod's avatar DarkGod
Browse files

Damage conversion only converts if the source damage is different

parent a4c5d378
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
if not game.level.map:isBound(x, y) then return 0 end
local add_dam = 0
if src:attr("all_damage_convert") then
if src:attr("all_damage_convert") and src.all_damage_convert ~= type then
local ndam = dam * src.all_damage_convert_percent / 100
dam = dam - ndam
local nt = src.all_damage_convert
......
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