From 751db6fffbc24fe6f49751ace9d5d441d648a306 Mon Sep 17 00:00:00 2001 From: catapultam-habeo <97849758+catapultam-habeo@users.noreply.github.com> Date: Sun, 6 Mar 2022 18:17:25 -0800 Subject: [PATCH] [Feature] Allow pets to zone with permanent (buffdurationformula 50) buffs to maintain them through zone transitions (#2035) --- zone/pets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/pets.cpp b/zone/pets.cpp index 1b3a7e3ec..699ca5f8d 100644 --- a/zone/pets.cpp +++ b/zone/pets.cpp @@ -598,7 +598,7 @@ void NPC::SetPetState(SpellBuff_Struct *pet_buffs, uint32 *items) { } } - if (pet_buffs[i].spellid <= (uint32)SPDAT_RECORDS && pet_buffs[i].spellid != 0 && pet_buffs[i].duration > 0) { + if (pet_buffs[i].spellid <= (uint32)SPDAT_RECORDS && pet_buffs[i].spellid != 0 && (pet_buffs[i].duration > 0 || pet_buffs[i].duration == -1)) { if(pet_buffs[i].level == 0 || pet_buffs[i].level > 100) pet_buffs[i].level = 1; buffs[i].spellid = pet_buffs[i].spellid;