Added a simple check to prevent DoEnduranceUpkeep (1 sec persistent timer)

from constantly checking when client has no endurance drain effects.
This was running 24/7 for all classes.
This commit is contained in:
KayenEQ
2014-11-12 01:54:21 -05:00
parent 22cc86e6a0
commit 59bcd031c8
5 changed files with 25 additions and 4 deletions
+3
View File
@@ -130,6 +130,9 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
buffs[buffslot].magic_rune = 0;
buffs[buffslot].numhits = 0;
if (spells[spell_id].EndurUpkeep > 0)
SetEndurUpkeep(true);
if(IsClient() && CastToClient()->GetClientVersionBit() & BIT_UnderfootAndLater)
{
EQApplicationPacket *outapp = MakeBuffsPacket(false);