Skip to content

Commit

Permalink
[9601] check for UNIT_FLAG_OOC_NOT_ATTACKABLE in DynamicObjectUpdater…
Browse files Browse the repository at this point in the history
…::VisitHelper

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

thx to DasMy who helped with research :)
  • Loading branch information
balrok committed Mar 17, 2010
1 parent a7e449b commit fd9e60a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/GridNotifiersImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 "9600"
#define REVISION_NR "9601"
#endif // __REVISION_NR_H__

0 comments on commit fd9e60a

Please sign in to comment.