mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9069] Drop outdated code.
Thanks to KAPATEJIb for reporting.
This commit is contained in:
parent
ab539a9de6
commit
7047d2c42c
2 changed files with 1 additions and 11 deletions
|
|
@ -9071,16 +9071,6 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM
|
||||||
case SPELL_DAMAGE_CLASS_MELEE:
|
case SPELL_DAMAGE_CLASS_MELEE:
|
||||||
case SPELL_DAMAGE_CLASS_RANGED:
|
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)
|
if (pVictim)
|
||||||
crit_chance = GetUnitCriticalChance(attackType, pVictim);
|
crit_chance = GetUnitCriticalChance(attackType, pVictim);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9068"
|
#define REVISION_NR "9069"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue