Skip to content

Commit

Permalink
[12895] Fix logic for [12891]
Browse files Browse the repository at this point in the history
Thanks to @evil-at-wow
  • Loading branch information
xfurry committed Jul 9, 2015
1 parent 26eeb6a commit 2fa51c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ void Unit::CalculateSpellDamage(SpellNonMeleeDamage* damageInfo, int32 damage, S
return;

// units which are not alive cannot deal damage except for dying creatures
if ((!this->isAlive() || !pVictim->isAlive()) && (this->GetTypeId() != TYPEID_UNIT && this->getDeathState() != DEAD))
if ((!this->isAlive() || !pVictim->isAlive()) && (this->GetTypeId() != TYPEID_UNIT || this->getDeathState() != DEAD))
return;

// Check spell crit chance
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 "12894"
#define REVISION_NR "12895"
#endif // __REVISION_NR_H__

0 comments on commit 2fa51c8

Please sign in to comment.