mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-03 23:03:51 +00:00
Added rule 'NPC:UseClassAsLastName' to second spawn packet handler
This commit is contained in:
parent
3d61df253d
commit
542d454fe0
@ -990,7 +990,7 @@ void Mob::CreateSpawnPacket(EQApplicationPacket* app, NewSpawn_Struct* ns) {
|
||||
strcpy(ns2->spawn.name, ns->spawn.name);
|
||||
|
||||
// Set default Last Names for certain Classes if not defined
|
||||
if (strlen(ns->spawn.lastName) == 0)
|
||||
if (RuleB(NPC, UseClassAsLastName) && strlen(ns->spawn.lastName) == 0)
|
||||
{
|
||||
switch (ns->spawn.class_)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user