From: fgsfds Date: Sun, 18 Aug 2019 20:07:19 +0000 (+0300) Subject: Game: Fix TRIGGER_DAMAGE on monsters X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=883536c49995010477bfba3c16e34209e0b4d8ef;p=d2df-sdl.git Game: Fix TRIGGER_DAMAGE on monsters --- diff --git a/src/game/g_triggers.pas b/src/game/g_triggers.pas index a2ae402..680d9ed 100644 --- a/src/game/g_triggers.pas +++ b/src/game/g_triggers.pas @@ -2135,7 +2135,7 @@ begin // Íàíîñèì óðîí ìîíñòðó if (TriggerType = TRIGGER_DAMAGE) and (tgcAmount > 0) then begin - p.Damage(tgcAmount, 0, 0, 0, tgcKind); + m.Damage(tgcAmount, 0, 0, 0, tgcKind); if (tgcKind = HIT_FLAME) then m.CatchFire(0); end;