Fix when the random +1 tick is added to nerf extension focus effects to where they should be

This commit is contained in:
Michael Cook
2013-10-03 23:04:58 -04:00
parent bf77bc47d1
commit 6b4b259753
3 changed files with 11 additions and 8 deletions
-8
View File
@@ -2364,14 +2364,6 @@ int Mob::CalcBuffDuration(Mob *caster, Mob *target, uint16 spell_id, int32 caste
castlevel = caster_level_override;
int res = CalcBuffDuration_formula(castlevel, formula, duration);
// Only need this for clients, since the change was for bard songs, I assume we should keep non bard songs getting +1
// However if its bard or not and is mez, charm or fear, we need to add 1 so that client is in sync
if(!IsShortDurationBuff(spell_id) ||
IsFearSpell(spell_id) ||
IsCharmSpell(spell_id) ||
IsMezSpell(spell_id) ||
IsBlindSpell(spell_id))
res += 1;
res = mod_buff_duration(res, caster, target, spell_id);