Allow base damage of 0 (ex slam) min damage done to 1

This commit is contained in:
Michael Cook (mackal)
2017-03-15 13:22:45 -04:00
parent 2d24237aac
commit d04d6750a2
5 changed files with 46 additions and 16 deletions
+5 -5
View File
@@ -142,7 +142,7 @@ void Mob::DoSpecialAttackDamage(Mob *who, EQEmu::skills::SkillType skill, int32
return;
DamageHitInfo my_hit;
my_hit.damage_done = 0;
my_hit.damage_done = 1; // min 1 dmg
my_hit.base_damage = base_damage;
my_hit.min_damage = min_damage;
my_hit.skill = skill;
@@ -847,7 +847,7 @@ void Mob::DoArcheryAttackDmg(Mob *other, const EQEmu::ItemInstance *RangeWeapon,
DamageHitInfo my_hit;
my_hit.base_damage = MaxDmg;
my_hit.min_damage = 0;
my_hit.damage_done = 0;
my_hit.damage_done = 1;
my_hit.skill = EQEmu::skills::SkillArchery;
my_hit.offense = offense(my_hit.skill);
@@ -1179,7 +1179,7 @@ void NPC::DoRangedAttackDmg(Mob* other, bool Launch, int16 damage_mod, int16 cha
DamageHitInfo my_hit;
my_hit.base_damage = MaxDmg;
my_hit.min_damage = MinDmg;
my_hit.damage_done = 0;
my_hit.damage_done = 1;
my_hit.skill = skill;
my_hit.offense = offense(my_hit.skill);
@@ -1360,7 +1360,7 @@ void Mob::DoThrowingAttackDmg(Mob *other, const EQEmu::ItemInstance *RangeWeapon
DamageHitInfo my_hit;
my_hit.base_damage = WDmg;
my_hit.min_damage = 0;
my_hit.damage_done = 0;
my_hit.damage_done = 1;
my_hit.skill = EQEmu::skills::SkillThrowing;
my_hit.offense = offense(my_hit.skill);
@@ -2117,7 +2117,7 @@ void Mob::DoMeleeSkillAttackDmg(Mob *other, uint16 weapon_damage, EQEmu::skills:
DamageHitInfo my_hit;
my_hit.base_damage = weapon_damage;
my_hit.min_damage = 0;
my_hit.damage_done = 0;
my_hit.damage_done = 1;
my_hit.skill = skillinuse;
my_hit.offense = offense(my_hit.skill);