Fixed last comit comments, names

This commit is contained in:
DiSlord 2008-12-17 00:41:07 +03:00
parent 668c3d4b4c
commit 3604f3fa1f

View file

@ -2308,12 +2308,11 @@ MeleeHitOutcome Unit::RollPhysicalOutcomeAgainst (Unit const *pVictim, WeaponAtt
// Increase from SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL aura // Increase from SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL aura
crit_chance += GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, spellInfo->SchoolMask); crit_chance += GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, spellInfo->SchoolMask);
// Ignore combat result aura // Ignore combat result aura
AuraList const& mCanNotBeDodge = GetAurasByType(SPELL_AURA_IGNORE_COMBAT_RESULT); AuraList const& ignore = GetAurasByType(SPELL_AURA_IGNORE_COMBAT_RESULT);
for(AuraList::const_iterator i = mCanNotBeDodge.begin(); i != mCanNotBeDodge.end(); ++i) for(AuraList::const_iterator i = ignore.begin(); i != ignore.end(); ++i)
{ {
if (!(*i)->isAffectedOnSpell(spellInfo)) if (!(*i)->isAffectedOnSpell(spellInfo))
continue; continue;
// can't be dodged
switch((*i)->GetModifier()->m_miscvalue) switch((*i)->GetModifier()->m_miscvalue)
{ {
case MELEE_HIT_DODGE: dodge_chance = 0.0f; break; case MELEE_HIT_DODGE: dodge_chance = 0.0f; break;