*Check in spell block chance calc to prevent return unexpected value - by thenecromancer.
--HG-- branch : trunk
This commit is contained in:
1 parent
bf326cd3a3
commit
00724b0b4f
2 files changed
+3
-1
No files matched your search
@@ -2868,6 +2868,8 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell)
|
||||
if (canBlock)
|
||||
{
|
||||
int32 blockChance = int32(pVictim->GetUnitBlockChance()*100.0f) - skillDiff * 4;
|
||||
if ( blockChance < 0 )
|
||||
blockChance = 0;
|
||||
tmp += blockChance;
|
||||
|
||||
if (roll < tmp)
|
||||
|
||||
Reference in new issue
Block a user