AddUntargetableToSpawn (#4872)

Adds the db entry for untargetable to the spawn struct
This commit is contained in:
Mitch Freeman
2025-04-28 18:50:57 -03:00
committed by GitHub
parent cd003ff0b7
commit c08f286817
3 changed files with 4 additions and 2 deletions
+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;