Actually fix press damage

This commit is contained in:
dawnDus 2022-03-12 10:00:46 -05:00
parent 5795015059
commit 38ea01d605
No known key found for this signature in database
GPG Key ID: 972AABDE81848F21
1 changed files with 6 additions and 0 deletions

View File

@ -979,6 +979,9 @@ impl NPC {
self.animate(2, 2, 2);
for player in players {
if !player.cond.alive() || player.cond.hidden() {
continue;
}
if player.y > self.y {
self.npc_flags.set_solid_hard(false);
self.damage = 127;
@ -1845,6 +1848,9 @@ impl NPC {
self.animate(2, 2, 2);
for player in players {
if !player.cond.alive() || player.cond.hidden() {
continue;
}
if player.y > self.y {
self.npc_flags.set_solid_hard(false);
self.damage = 127;