mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +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:
+8
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user