Fixed Merc lack of use of heal over time spells (causing excessive healing), fixed pet mitigation/AC issues.

This commit is contained in:
badcaptain
2013-04-02 19:09:32 -04:00
parent 24d4eaf65d
commit a787a7ce72
2 changed files with 17 additions and 15 deletions
+8 -1
View File
@@ -562,7 +562,14 @@ void Mob::MeleeMitigation(Mob *attacker, int32 &damage, int32 minhit)
}
else if(IsNPC())
{
armor = spellbonuses.AC + itembonuses.AC + (CastToNPC()->GetRawAC() / RuleR(Combat, NPCACFactor)) + 1;
armor = CastToNPC()->GetRawAC();
if(!IsPet())
{
armor = (armor / RuleR(Combat, NPCACFactor));
}
armor += spellbonuses.AC + itembonuses.AC + 1;
}
if(GetClass() == WIZARD || GetClass() == MAGICIAN || GetClass() == NECROMANCER || GetClass() == ENCHANTER)