diff options
author | QAston <none@none> | 2009-02-07 22:39:40 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-02-07 22:39:40 +0100 |
commit | d465a5ed02532e55b97f8478b685e4ee72353f1b (patch) | |
tree | 36178bc8a08faf1117b3c2310f8b5836f4082bf7 /src/game/Unit.cpp | |
parent | 401ebf5455f665f53f770bd5037bd67bfe597d40 (diff) |
*Handle SPELL_AURA_MOD_ENEMY_DODGE, make commanding shout heal for hp increased value.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 5ade3845276..abdd8746679 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -2302,6 +2302,7 @@ MeleeHitOutcome Unit::RollMeleeOutcomeAgainst (const Unit *pVictim, WeaponAttack // Modify dodge chance by attacker SPELL_AURA_MOD_COMBAT_RESULT_CHANCE dodge_chance+= GetTotalAuraModifierByMiscValue(SPELL_AURA_MOD_COMBAT_RESULT_CHANCE, VICTIMSTATE_DODGE); + dodge_chance*= GetTotalAuraMultiplier(SPELL_AURA_MOD_ENEMY_DODGE); tmp = dodge_chance; if ( (tmp > 0) // check if unit _can_ dodge @@ -2663,6 +2664,7 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell) int32 dodgeChance = int32(pVictim->GetUnitDodgeChance()*100.0f) - skillDiff * 4; // Reduce enemy dodge chance by SPELL_AURA_MOD_COMBAT_RESULT_CHANCE dodgeChance+= GetTotalAuraModifierByMiscValue(SPELL_AURA_MOD_COMBAT_RESULT_CHANCE, VICTIMSTATE_DODGE); + dodgeChance*= GetTotalAuraMultiplier(SPELL_AURA_MOD_ENEMY_DODGE); // Reduce dodge chance by attacker expertise rating if (GetTypeId() == TYPEID_PLAYER) dodgeChance-=int32(((Player*)this)->GetExpertiseDodgeOrParryReduction(attType) * 100.0f); |