DEADSOFTWARE

Game: Don't catch fire if protected
authorfgsfds <pvt.fgsfds@gmail.com>
Mon, 5 Aug 2019 22:24:44 +0000 (01:24 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Mon, 5 Aug 2019 22:24:44 +0000 (01:24 +0300)
src/game/g_player.pas

index 88070c61c04866a6c79bcea7dc8d39f88545fa12..ddf4825b2ee994232eaf81bc22a58ff101935c65 100644 (file)
@@ -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;