Skip to content

Commit

Permalink
[10903] Drop unused code in Unit::MeleeDamageBonusDone()
Browse files Browse the repository at this point in the history
  • Loading branch information
zergtmn committed Dec 21, 2010
1 parent d7ad2b6 commit 41a4caa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7203,11 +7203,6 @@ uint32 Unit::MeleeDamageBonusDone(Unit *pVictim, uint32 pdamage,WeaponAttackType
Item* pWeapon = GetTypeId() == TYPEID_PLAYER ? ((Player*)this)->GetWeaponForAttack(attType,true,false) : NULL;
uint32 creatureTypeMask = pVictim->GetCreatureTypeMask();
uint32 schoolMask = spellProto ? spellProto->SchoolMask : GetMeleeDamageSchoolMask();
uint32 mechanicMask = spellProto ? GetAllSpellMechanicMask(spellProto) : 0;

// Shred also have bonus as MECHANIC_BLEED damages
if (spellProto && spellProto->SpellFamilyName==SPELLFAMILY_DRUID && spellProto->SpellFamilyFlags & UI64LIT(0x00008000))
mechanicMask |= (1 << (MECHANIC_BLEED-1));

// FLAT damage bonus auras
// =======================
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 "10902"
#define REVISION_NR "10903"
#endif // __REVISION_NR_H__

0 comments on commit 41a4caa

Please sign in to comment.