[9069] Drop outdated code.

Thanks to KAPATEJIb for reporting.
This commit is contained in:
VladimirMangos 2009-12-25 22:25:40 +03:00
parent ab539a9de6
commit 7047d2c42c
2 changed files with 1 additions and 11 deletions

View file

@ -9071,16 +9071,6 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM
case SPELL_DAMAGE_CLASS_MELEE:
case SPELL_DAMAGE_CLASS_RANGED:
{
// Judgement of Command proc always crits on stunned target
if (spellProto->DmgClass == SPELL_DAMAGE_CLASS_MELEE && spellProto->SpellFamilyName == SPELLFAMILY_PALADIN)
{
if ((spellProto->SpellFamilyFlags & UI64LIT(0x0000000000800000)) && spellProto->SpellIconID == 561)
{
if(pVictim->hasUnitState(UNIT_STAT_STUNNED))
return true;
}
}
if (pVictim)
crit_chance = GetUnitCriticalChance(attackType, pVictim);