mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-06 21:53:51 +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
|
int Client::GetCurrentBuffSlots() const
|
||||||
{
|
{
|
||||||
if(15 + aabonuses.BuffSlotIncrease > 25)
|
int numbuffs = 15;
|
||||||
return 25;
|
// client does check spells and items
|
||||||
else
|
numbuffs += aabonuses.BuffSlotIncrease + spellbonuses.BuffSlotIncrease + itembonuses.BuffSlotIncrease;
|
||||||
return 15 + aabonuses.BuffSlotIncrease;
|
if (GetLevel() > 70)
|
||||||
|
numbuffs++;
|
||||||
|
if (GetLevel() > 74)
|
||||||
|
numbuffs++;
|
||||||
|
return EQEmu::ClampUpper(numbuffs, GetMaxBuffSlots());
|
||||||
}
|
}
|
||||||
|
|
||||||
int Client::GetCurrentSongSlots() const
|
int Client::GetCurrentSongSlots() const
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user