Closed rhymu8354 closed 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.
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.
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.
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.