DEADSOFTWARE

Game: Fix TRIGGER_DAMAGE on monsters
authorfgsfds <pvt.fgsfds@gmail.com>
Sun, 18 Aug 2019 20:07:19 +0000 (23:07 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Sun, 18 Aug 2019 20:07:55 +0000 (23:07 +0300)
src/game/g_triggers.pas

index a2ae402536bdea9b3d431e192bf5cda847e9945a..680d9ed266f26a8fbf486ba76376360b4ba0f8f6 100644 (file)
@@ -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;