extra check for pvp area

master
Juraj Vajda 2018-03-04 21:47:10 -05:00
parent 677d5684fb
commit d026a9e890
1 changed files with 1 additions and 1 deletions

View File

@ -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