mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Fix issue with adding spells via quest to an empty list
This commit is contained in:
parent
4258e5cebc
commit
be459de555
@ -2495,6 +2495,10 @@ void NPC::AddSpellToNPCList(int16 iPriority, int16 iSpellID, uint16 iType,
|
||||
t.resist_adjust = iResistAdjust;
|
||||
|
||||
AIspells.push_back(t);
|
||||
|
||||
// If we're going from an empty list, we need to start the timer
|
||||
if (AIspells.size() == 1)
|
||||
AIautocastspell_timer->Start(RandomTimer(0, 15000), false);
|
||||
}
|
||||
|
||||
void NPC::RemoveSpellFromNPCList(int16 spell_id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user