[Bug Fix] Using %T in channel messages on fresh corpse yields mob, not corpse name. (#4168)

* [Bug Fix] Using %T in channel messages on fresh corpse yields mob/player name, not corpse name.

* Undo changes to PC corpse.

* Use rename to fix %T usage on client for those in zone

* Fix indentation spacing

* Update to consolidate Rename as suggested.

* Fix for mobs with ` in name

* Fix to use GetName() instead of GetCleanName()
This commit is contained in:
Paul Coene
2024-04-05 09:29:48 -04:00
committed by GitHub
parent 043eeced6f
commit b1d873d1fc
3 changed files with 27 additions and 10 deletions
+1
View File
@@ -829,6 +829,7 @@ public:
void SendHPUpdate(bool force_update_all = false);
virtual void ResetHPUpdateTimer() {}; // does nothing
static void SetSpawnLastNameByClass(NewSpawn_Struct* ns);
void SendRename(Mob* sender, const char* old_name, const char* new_name);
//Util
static uint32 RandomTimer(int min, int max);