mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
Fixed Merc lack of use of heal over time spells (causing excessive healing), fixed pet mitigation/AC issues.
This commit is contained in:
+8
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user