mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-13 06:42:26 +00:00
[Feature] Allow pets to zone with permanent (buffdurationformula 50) buffs to maintain them through zone transitions (#2035)
This commit is contained in:
parent
c4eb1f8439
commit
751db6fffb
@ -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)
|
if(pet_buffs[i].level == 0 || pet_buffs[i].level > 100)
|
||||||
pet_buffs[i].level = 1;
|
pet_buffs[i].level = 1;
|
||||||
buffs[i].spellid = pet_buffs[i].spellid;
|
buffs[i].spellid = pet_buffs[i].spellid;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user