Fixed melee lifetap overflows - Because being healed for uint16s is not cool.

This commit is contained in:
SecretsOTheP 2014-11-03 16:45:36 -05:00
parent 38f1e8847c
commit 3ac0f1506c
2 changed files with 3 additions and 3 deletions

View File

@ -312,8 +312,8 @@ struct StatBonuses {
int16 FlurryChance;
int16 Accuracy[HIGHEST_SKILL+2]; //Accuracy/15 == % increase [Spell Effect: Accuracy)
int16 HundredHands; //extra haste, stacks with all other haste i
int16 MeleeLifetap; //i
int16 Vampirism; //i
int32 MeleeLifetap; //i
int32 Vampirism; //i
int16 HealRate; // Spell effect that influences effectiveness of heals
int32 MaxHPChange; // Spell Effect
int16 SkillDmgTaken[HIGHEST_SKILL+2]; // All Skills + -1

View File

@ -4179,7 +4179,7 @@ int16 Mob::GetSkillDmgAmt(uint16 skill)
void Mob::MeleeLifeTap(int32 damage) {
int16 lifetap_amt = 0;
int32 lifetap_amt = 0;
lifetap_amt = spellbonuses.MeleeLifetap + itembonuses.MeleeLifetap + aabonuses.MeleeLifetap
+ spellbonuses.Vampirism + itembonuses.Vampirism + aabonuses.Vampirism;