From 6165d36a07bcf314c17675036f5be2b013d60fd7 Mon Sep 17 00:00:00 2001 From: staphen Date: Sun, 24 Jul 2022 13:04:44 -0400 Subject: [PATCH] Update mWhoHit and remote clients when hitting resistant monsters --- Source/missiles.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 115d79dfa..814701836 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -285,6 +285,12 @@ bool MonsterMHit(int pnum, int m, int mindam, int maxdam, int dist, missile_id t } } else { if (resist) { + if (pnum >= 0) + monster.mWhoHit |= 1 << pnum; + if (pnum == MyPlayerId) { + delta_monster_hp(m, monster._mhitpoints, currlevel); + NetSendCmdMonDmg(false, m, dam); + } PlayEffect(monster, 1); } else if (monster._mmode == MonsterMode::Petrified) { if (m > MAX_PLRS - 1)