From b20f9138f675ce31c5758ef3a3620b19d7eafbfd Mon Sep 17 00:00:00 2001 From: balrok Date: Wed, 17 Mar 2010 21:22:03 +0100 Subject: [PATCH] [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 :) --- src/game/GridNotifiersImpl.h | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h index 252e4330e..10f6daf1b 100644 --- a/src/game/GridNotifiersImpl.h +++ b/src/game/GridNotifiersImpl.h @@ -147,7 +147,7 @@ inline void MaNGOS::DynamicObjectUpdater::VisitHelper(Unit* target) return; //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; // Evade target diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 0736bf6b4..299583e7d 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 "9600" + #define REVISION_NR "9601" #endif // __REVISION_NR_H__