[8537] Implement SPELL_AURA_MOD_CRIT_CHANCE for spell 31858

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Shendor 2009-09-25 20:19:03 +03:00 committed by Ambal
parent 19e28af2f0
commit f8047e9da0
5 changed files with 12 additions and 3 deletions

View file

@ -586,6 +586,8 @@ void Player::UpdateSpellCritChance(uint32 school)
crit += GetSpellCritFromIntellect();
// Increase crit from SPELL_AURA_MOD_SPELL_CRIT_CHANCE
crit += GetTotalAuraModifier(SPELL_AURA_MOD_SPELL_CRIT_CHANCE);
// Increase crit from SPELL_AURA_MOD_ALL_CRIT_CHANCE
crit += GetTotalAuraModifier(SPELL_AURA_MOD_ALL_CRIT_CHANCE);
// Increase crit by school from SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL
crit += GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, 1<<school);
// Increase crit from spell crit ratings