mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-05 04:13:52 +00:00
Update GetCurrentBuffSlots() for TSS free slots
The client also checks if you have any bonus from spells and items so why not check that as well
This commit is contained in:
parent
f3da7773d3
commit
64cf613189
@ -5466,10 +5466,14 @@ void Mob::BuffModifyDurationBySpellID(uint16 spell_id, int32 newDuration)
|
||||
|
||||
int Client::GetCurrentBuffSlots() const
|
||||
{
|
||||
if(15 + aabonuses.BuffSlotIncrease > 25)
|
||||
return 25;
|
||||
else
|
||||
return 15 + aabonuses.BuffSlotIncrease;
|
||||
int numbuffs = 15;
|
||||
// client does check spells and items
|
||||
numbuffs += aabonuses.BuffSlotIncrease + spellbonuses.BuffSlotIncrease + itembonuses.BuffSlotIncrease;
|
||||
if (GetLevel() > 70)
|
||||
numbuffs++;
|
||||
if (GetLevel() > 74)
|
||||
numbuffs++;
|
||||
return EQEmu::ClampUpper(numbuffs, GetMaxBuffSlots());
|
||||
}
|
||||
|
||||
int Client::GetCurrentSongSlots() const
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user