Core/Pets: Adjust pet slot saving logic after constant changes

Port From (https://github.com/TrinityCore/TrinityCore/commit/fd9eb28322fd75e94fcf5093aaf54bee145edfe8)
This commit is contained in:
hondacrx
2022-03-10 10:40:32 -05:00
parent cd29996170
commit a77e6865b2
5 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -34,11 +34,11 @@ namespace Framework.Constants
public enum PetSaveMode
{
AsDeleted = -1, // not saved in fact
NotInSlot = -1, // for avoid conflict with stable size grow will use negative value
AsDeleted = -2, // not saved in fact
AsCurrent = 0, // in current slot (with player)
FirstStableSlot = 1,
LastStableSlot = 4, // last in DB stable slot index (including), all higher have same meaning as PET_SAVE_NOT_IN_SLOT
NotInSlot = 100 // for avoid conflict with stable size grow will use 100
LastStableSlot = SharedConst.MaxPetStables, // last in DB stable slot index (including), all higher have same meaning as PET_SAVE_NOT_IN_SLOT
}
public enum PetSpellState