[Spells] Updated pet suspend code to use spell effect data and bonuses (#1501)

This commit is contained in:
KayenEQ authored and GitHub committed 2021-08-31 00:35:18 -05:00
1 parent 3b01608a71
commit 5f3c054044
7 files changed
+28 -18

No files matched your search

+2 -1
View File
@@ -1659,8 +1659,9 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
m_petinfo.SpellID = 0;
}
/* Moved here so it's after where we load the pet data. */
if (!GetAA(aaPersistentMinion))
if (!aabonuses.ZoneSuspendMinion && !spellbonuses.ZoneSuspendMinion && !itembonuses.ZoneSuspendMinion) {
memset(&m_suspendedminion, 0, sizeof(PetInfo));
}
/* Server Zone Entry Packet */
outapp = new EQApplicationPacket(OP_ZoneEntry, sizeof(ServerZoneEntry_Struct));