Move item caps that depend on spells/aas to be done after those are valid

Also fix Sleeper's Tomb avatar proc to be counted towards item ATK
This commit is contained in:
Michael Cook (mackal)
2015-03-02 16:23:46 -05:00
parent 10f1e69ad8
commit f95806b47b
3 changed files with 27 additions and 17 deletions
+6
View File
@@ -2148,6 +2148,12 @@ int32 Client::CalcEnduranceRegenCap()
return (cap * RuleI(Character, EnduranceRegenMultiplier) / 100);
}
int32 Client::CalcItemATKCap()
{
int cap = RuleI(Character, ItemATKCap) + itembonuses.ItemATKCap + spellbonuses.ItemATKCap + aabonuses.ItemATKCap;
return cap;
}
int Client::GetRawACNoShield(int &shield_ac) const
{
int ac = itembonuses.AC + spellbonuses.AC + aabonuses.AC;