AddUntargetableToSpawn (#4872)

Adds the db entry for untargetable to the spawn struct
This commit is contained in:
Mitch Freeman authored and GitHub committed 2025-04-28 17:50:57 -04:00
1 parent cd003ff0b7
commit c08f286817
3 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1312,7 +1312,8 @@ void Mob::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho)
ns->spawn.NPC = IsClient() ? 0 : 1;
ns->spawn.IsMercenary = IsMerc() ? 1 : 0;
ns->spawn.targetable_with_hotkey = no_target_hotkey ? 0 : 1; // opposite logic!
ns->spawn.untargetable = IsTargetable();
ns->spawn.petOwnerId = ownerid;
ns->spawn.haircolor = haircolor;