Client checks song flag first

This fixes bugs with buffs marked as disc and song (they go to the song window now)
Before the client got confused and gave up displaying them at all!
This commit is contained in:
Michael Cook (mackal) 2016-08-10 13:16:32 -04:00
parent 7d62b208ca
commit 38d3f9b7c0

View File

@ -3060,19 +3060,19 @@ uint32 Mob::GetLastBuffSlot(bool disc, bool song)
uint32 Client::GetFirstBuffSlot(bool disc, bool song)
{
if (disc)
return GetMaxBuffSlots() + GetMaxSongSlots();
if (song)
return GetMaxBuffSlots();
if (disc)
return GetMaxBuffSlots() + GetMaxSongSlots();
return 0;
}
uint32 Client::GetLastBuffSlot(bool disc, bool song)
{
if (disc)
return GetMaxBuffSlots() + GetMaxSongSlots() + GetCurrentDiscSlots();
if (song)
return GetMaxBuffSlots() + GetCurrentSongSlots();
if (disc)
return GetMaxBuffSlots() + GetMaxSongSlots() + GetCurrentDiscSlots();
return GetCurrentBuffSlots();
}