rhymu8354 / OmniaRegna

This holds public information about OmniaRegna (https://omniaregna.com/), an online RPG. Issues for the game may be reported here or in the game itself.
8 stars 1 forks source link

Monsters continue attacking players even when they are dead #243

Closed rhymu8354 closed 4 years ago

rhymu8354 commented 4 years ago

This is in-game ticket #773 [igroc]

This is actually a regression, but I think the original bug was found and fixed before it was even entered into any tracking system, so I have no previous ticket to which to refer.

rhymu8354 commented 4 years ago

The bug was in the are_spawned_npcs_hostile_towards function, which did not look at the player's hit points and discount the player as a target if the hit points was zero.

rhymu8354 commented 4 years ago

This is still not completely fixed. If two monsters are attacking the same player, each monster strikes the player at least one more time, even if the player is already dead.

rhymu8354 commented 4 years ago

Fixed now. This time the problem was in npc_attack_at, where an enemy already on the aggro list for a monster would be attacked even if the enemy was already dead.