Skip to content

Commit

Permalink
[9069] Drop outdated code.
Browse files Browse the repository at this point in the history
Thanks to KAPATEJIb for reporting.
  • Loading branch information
VladimirMangos committed Dec 25, 2009
1 parent 8f5fd05 commit 153123b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9068"
#define REVISION_NR "9069"
#endif // __REVISION_NR_H__

0 comments on commit 153123b

Please sign in to comment.