From: fgsfds Date: Mon, 5 Aug 2019 22:24:44 +0000 (+0300) Subject: Game: Don't catch fire if protected X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=edb1ac42b71cbc5a4bc460d8b0b64572f65dd0fa;p=d2df-sdl.git Game: Don't catch fire if protected --- diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 88070c6..ddf4825 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -3191,6 +3191,8 @@ end; procedure TPlayer.CatchFire(Attacker: Word); begin + if (FMegaRulez[MR_SUIT] > gTime) or (FMegaRulez[MR_INVUL] > gTime) then + exit; // Íå çàãîðàåìñÿ êîãäà åñòü çàùèòà if FFireTime <= 0 then g_Sound_PlayExAt('SOUND_IGNITE', FObj.X, FObj.Y); FFireTime := 100;