Galarzaa90 / NabBot

Discord bot for Tibia servers
https://nabbot.xyz
Apache License 2.0
52 stars 25 forks source link

Fix messages showing the same killer as the player that died #169

Closed Galarzaa90 closed 5 years ago

Galarzaa90 commented 5 years ago

In PvP, depending on PvP settings, a player can cause damage to themselves. This might lead to deaths caused by the same player. For example:

image

So this leads to messages like:

RIP Furschy (74), you were strong. Furschy was stronger.

If the killer's name matches the name of the player, the next killer on the list (in this case, Ancient Scarab) should be displayed instead.