1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-01 08:37:42 +00:00

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

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;