Merge pull request #537 from noudess/master

Fix for BuffDurationPacket on movement speed buffs.
This commit is contained in:
Michael Cook (mackal) 2016-07-18 16:05:28 -04:00 committed by GitHub
commit 8983f3c5dc

View File

@ -5359,6 +5359,19 @@ void Client::SendBuffDurationPacket(Buffs_Struct &buff)
// level.
sbf->effect = 46;
}
else if (IsEffectInSpell(buff.spellid, SE_MovementSpeed))
{
index = GetSpellEffectIndex(buff.spellid, SE_MovementSpeed);
// So MovementSpeed spells react to effect values as follows:
// 0- cancels the effect (buff stays up - run speed is normal)
// 1-45 - A formula of change where 1-9 yield about a .1 to .9
// reduction of the spell effect, 10 yields about the same, and
// 11-45 gets faster very quickly until the effect well exceeds
// any intended max.
// 46 - seems to do nothing - which is what we need.
sbf->effect = 46;
}
else if (IsEffectInSpell(buff.spellid, SE_CHA))
{
index = GetSpellEffectIndex(buff.spellid, SE_CHA);