Added GetMeleeMitigation() to Perl and Lua for Mobs (Clients/NPCs).

This commit is contained in:
Kinglykrab
2015-12-21 15:43:56 -05:00
parent c168d7b7b6
commit 9a1271805a
6 changed files with 47 additions and 1 deletions
+8
View File
@@ -5682,3 +5682,11 @@ void Mob::SetCurrentSpeed(int in){
}
}
}
int32 Mob::GetMeleeMitigation() {
int32 mitigation = 0;
mitigation += spellbonuses.MeleeMitigationEffect;
mitigation += itembonuses.MeleeMitigationEffect;
mitigation += aabonuses.MeleeMitigationEffect;
return mitigation;
}