Calculate mechanic resist chance for melee abilities.

--HG--
branch : trunk
This commit is contained in:
krz
2009-05-30 20:40:05 +02:00
parent a3a7996fd1
commit 78228818b7
2 changed files with 30 additions and 13 deletions
+1
View File
@@ -969,6 +969,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
float GetUnitParryChance() const;
float GetUnitBlockChance() const;
float GetUnitCriticalChance(WeaponAttackType attackType, const Unit *pVictim) const;
int32 GetMechanicResistChance(const SpellEntry *spell);
virtual uint32 GetShieldBlockValue() const =0;
uint32 GetUnitMeleeSkill(Unit const* target = NULL) const { return (target ? getLevelForTarget(target) : getLevel()) * 5; }