mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
Made familiars persistent.
This commit is contained in:
parent
96820c4a31
commit
b96be9d5b8
@ -549,7 +549,7 @@ bool Client::Save(uint8 iCommitNow) {
|
|||||||
|
|
||||||
m_pp.lastlogin = time(nullptr);
|
m_pp.lastlogin = time(nullptr);
|
||||||
|
|
||||||
if (GetPet() && !GetPet()->IsFamiliar() && GetPet()->CastToNPC()->GetPetSpellID() && !dead) {
|
if (GetPet() && GetPet()->CastToNPC()->GetPetSpellID() && !dead) {
|
||||||
NPC *pet = GetPet()->CastToNPC();
|
NPC *pet = GetPet()->CastToNPC();
|
||||||
m_petinfo.SpellID = pet->CastToNPC()->GetPetSpellID();
|
m_petinfo.SpellID = pet->CastToNPC()->GetPetSpellID();
|
||||||
m_petinfo.HP = pet->GetHP();
|
m_petinfo.HP = pet->GetHP();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user