From 279c99bd0ffcc65c834b6278a531215830f28913 Mon Sep 17 00:00:00 2001 From: Lynx3d Date: Fri, 14 Jan 2011 20:39:18 +0100 Subject: [PATCH] [11008] Fix wrong threat assignment in threatAssist(). 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. --- src/game/HostileRefManager.cpp | 5 +---- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/game/HostileRefManager.cpp b/src/game/HostileRefManager.cpp index a45defb7c..fef91c284 100644 --- a/src/game/HostileRefManager.cpp +++ b/src/game/HostileRefManager.cpp @@ -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(); } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index a6a8ad134..f1bc0d6d8 100644 --- a/src/shared/revision_nr.h +++ b/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__