Skip to content

Commit

Permalink
[10395] No debug log output when a certain ability is active
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Aug 21, 2010
1 parent 9e76e9d commit 817c49c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,10 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
}
}

DEBUG_FILTER_LOG(LOG_FILTER_DAMAGE,"SET JUST_DIED");
if(!spiritOfRedemtionTalentReady)
if (!spiritOfRedemtionTalentReady)
pVictim->setDeathState(JUST_DIED);
else
DEBUG_FILTER_LOG(LOG_FILTER_DAMAGE,"SET JUST_DIED");

DEBUG_FILTER_LOG(LOG_FILTER_DAMAGE,"DealDamageHealth1");

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 "10394"
#define REVISION_NR "10395"
#endif // __REVISION_NR_H__

2 comments on commit 817c49c

@rsa
Copy link
Contributor

@rsa rsa commented on 817c49c Aug 24, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be supposed
if (!spiritOfRedemtionTalentReady)
{
pVictim->setDeathState(JUST_DIED);
DEBUG_FILTER_LOG(LOG_FILTER_DAMAGE,"SET JUST_DIED");
}
?
but I do not understand the logic of this commit

@NoFantasy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silly mistake, your version is of course correct.

Please sign in to comment.