mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
Fixed last comit comments, names
This commit is contained in:
parent
668c3d4b4c
commit
3604f3fa1f
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue