mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-04 01:57:51 +00:00
Actually fix press damage
This commit is contained in:
parent
5795015059
commit
38ea01d605
|
@ -979,6 +979,9 @@ impl NPC {
|
||||||
self.animate(2, 2, 2);
|
self.animate(2, 2, 2);
|
||||||
|
|
||||||
for player in players {
|
for player in players {
|
||||||
|
if !player.cond.alive() || player.cond.hidden() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if player.y > self.y {
|
if player.y > self.y {
|
||||||
self.npc_flags.set_solid_hard(false);
|
self.npc_flags.set_solid_hard(false);
|
||||||
self.damage = 127;
|
self.damage = 127;
|
||||||
|
@ -1845,6 +1848,9 @@ impl NPC {
|
||||||
self.animate(2, 2, 2);
|
self.animate(2, 2, 2);
|
||||||
|
|
||||||
for player in players {
|
for player in players {
|
||||||
|
if !player.cond.alive() || player.cond.hidden() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if player.y > self.y {
|
if player.y > self.y {
|
||||||
self.npc_flags.set_solid_hard(false);
|
self.npc_flags.set_solid_hard(false);
|
||||||
self.damage = 127;
|
self.damage = 127;
|
||||||
|
|
Loading…
Reference in a new issue