mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
AddUntargetableToSpawn (#4872)
Adds the db entry for untargetable to the spawn struct
This commit is contained in:
parent
cd003ff0b7
commit
c08f286817
@ -324,6 +324,7 @@ union
|
|||||||
bool guild_show;
|
bool guild_show;
|
||||||
bool trader;
|
bool trader;
|
||||||
bool buyer;
|
bool buyer;
|
||||||
|
bool untargetable;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PlayerState_Struct {
|
struct PlayerState_Struct {
|
||||||
|
|||||||
@ -4688,7 +4688,7 @@ namespace RoF2
|
|||||||
Bitfields->linkdead = 0;
|
Bitfields->linkdead = 0;
|
||||||
Bitfields->showhelm = emu->showhelm;
|
Bitfields->showhelm = emu->showhelm;
|
||||||
Bitfields->trader = emu->trader ? 1 : 0;
|
Bitfields->trader = emu->trader ? 1 : 0;
|
||||||
Bitfields->targetable = 1;
|
Bitfields->targetable = emu->NPC ? emu->untargetable : 1;
|
||||||
Bitfields->targetable_with_hotkey = emu->targetable_with_hotkey ? 1 : 0;
|
Bitfields->targetable_with_hotkey = emu->targetable_with_hotkey ? 1 : 0;
|
||||||
Bitfields->showname = ShowName;
|
Bitfields->showname = ShowName;
|
||||||
|
|
||||||
|
|||||||
@ -1312,6 +1312,7 @@ void Mob::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho)
|
|||||||
ns->spawn.NPC = IsClient() ? 0 : 1;
|
ns->spawn.NPC = IsClient() ? 0 : 1;
|
||||||
ns->spawn.IsMercenary = IsMerc() ? 1 : 0;
|
ns->spawn.IsMercenary = IsMerc() ? 1 : 0;
|
||||||
ns->spawn.targetable_with_hotkey = no_target_hotkey ? 0 : 1; // opposite logic!
|
ns->spawn.targetable_with_hotkey = no_target_hotkey ? 0 : 1; // opposite logic!
|
||||||
|
ns->spawn.untargetable = IsTargetable();
|
||||||
|
|
||||||
ns->spawn.petOwnerId = ownerid;
|
ns->spawn.petOwnerId = ownerid;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user