Skip to content

Commit

Permalink
[11008] Fix wrong threat assignment in threatAssist().
Browse files Browse the repository at this point in the history
It may have been faster, but unfortunately made the aggressor threatened by his enemies instead of the opposite...
In case Player heals himself, this is of course pointless as he chooses target himself, hence it had no real effect at all.
  • Loading branch information
Lynx3d committed Jan 14, 2011
1 parent 56b258c commit 4b15f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/game/HostileRefManager.cpp
Expand Up @@ -63,10 +63,7 @@ void HostileRefManager::threatAssist(Unit *pVictim, float pThreat, SpellEntry co
}
}

if (pVictim == getOwner())
ref->addThreat(float (threat) / size); // It is faster to modify the threat durectly if possible
else
ref->getSource()->addThreat(pVictim, float (threat) / size);
ref->getSource()->addThreat(pVictim, float (threat) / size);

ref = ref->next();
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11007"
#define REVISION_NR "11008"
#endif // __REVISION_NR_H__

0 comments on commit 4b15f9f

Please sign in to comment.