Fix AffectedBySpellExcludingSlot

This commit is contained in:
Michael Cook (mackal) 2017-08-01 13:09:18 -04:00
parent b468945eb7
commit 771c3b175e

View File

@ -5963,7 +5963,8 @@ bool Mob::TryDeathSave() {
bool Mob::AffectedBySpellExcludingSlot(int slot, int effect)
{
for (int i = 0; i <= EFFECT_COUNT; i++)
int buff_count = GetMaxTotalSlots();
for (int i = 0; i < buff_count; i++)
{
if (i == slot)
continue;