Browse Source

Update mWhoHit and remote clients when hitting resistant monsters

test
staphen 4 years ago committed by Anders Jenbo
parent
commit
6165d36a07
  1. 6
      Source/missiles.cpp

6
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)

Loading…
Cancel
Save