Only correct spell slots when we're sending to self

This will fix display issues with lots of buffs on NPCs
This commit is contained in:
Michael Cook (mackal)
2016-08-24 23:15:31 -04:00
parent 3afc5d0890
commit 55d2e9b842
3 changed files with 18 additions and 20 deletions
+5 -7
View File
@@ -410,13 +410,11 @@ namespace UF
for (uint16 i = 0; i < emu->count; ++i)
{
uint16 buffslot = emu->entries[i].buff_slot;
if (emu->entries[i].buff_slot >= 25 && emu->entries[i].buff_slot < 37)
{
buffslot += 5;
}
else if (emu->entries[i].buff_slot >= 37)
{
buffslot += 14;
if (emu->type == 0) { // only correct for self packets
if (emu->entries[i].buff_slot >= 25 && emu->entries[i].buff_slot < 37)
buffslot += 5;
else if (emu->entries[i].buff_slot >= 37)
buffslot += 14;
}
__packet->WriteUInt32(buffslot);