extra check for pvp area
parent
677d5684fb
commit
d026a9e890
2
init.lua
2
init.lua
|
@ -145,7 +145,7 @@ function city_block.register_on_punchplayer(player, hitter, time_from_last_punch
|
|||
if hp > 0 and (hp - damage) <= 0 then -- player will die because of this hit
|
||||
local pos = player:getpos()
|
||||
|
||||
if city_block:in_city(pos) then
|
||||
if city_block:in_city(pos) and not pvp_block:in_area(pos) then
|
||||
local t0 = city_block.attack[name] or t;
|
||||
t0 = t - t0;
|
||||
if not city_block.attacker[name] then city_block.attacker[name] = "" end
|
||||
|
|
Loading…
Reference in New Issue