[9601] check for UNIT_FLAG_OOC_NOT_ATTACKABLE in DynamicObjectUpdater::VisitHelper

this will solve the problem that spiritguides could get attacked
(for instance with spell 2121)

thx to DasMy who helped with research :)
This commit is contained in:
balrok 2010-03-17 21:22:03 +01:00
parent 3db4616e17
commit b20f9138f6
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ inline void MaNGOS::DynamicObjectUpdater::VisitHelper(Unit* target)
return; return;
//Check targets for not_selectable unit flag and remove //Check targets for not_selectable unit flag and remove
if (target->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE)) if (target->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_OOC_NOT_ATTACKABLE))
return; return;
// Evade target // Evade target

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9600" #define REVISION_NR "9601"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__