File diff 9370f29c07cf → c62d986c3a5c
battlefield.lua
Show inline comments
 
@@ -169,7 +169,7 @@ battlefield = function(tab)
 

	
 
                        pr(EngineUtils.getValue(s.obj[i].state, s.obj[i]));
 

	
 
                        if s.obj[i].enemy then
 
                        if s.obj[i].enemy and EngineUtils.getValue(s.obj[i].canshoot, s.obj[i]) then
 
                            if s.obj[i]:canhit() or (s.obj[i]:canthrust() and have(item_harpoon)) then
 
                                s.ui_state = {tx, ty, 'hit', s.obj[i]};
 
                                if have(item_harpoon) then
 
@@ -278,6 +278,7 @@ battlefield = function(tab)
 
        local xc = 0;
 
        local yc = 0;
 
        local error = 0;
 

	
 
        if (dx > dy) then
 
            --horizontal line
 
            local y = 0;