mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-19 20:02:25 +00:00
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:
parent
7d62b208ca
commit
38d3f9b7c0
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user