mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8694] GMs should see units with "invisibleForAlive()"
This commit is contained in:
parent
86b60901bf
commit
fcf854c0bb
2 changed files with 4 additions and 4 deletions
|
|
@ -9724,9 +9724,6 @@ bool Unit::isVisibleForOrDetect(Unit const* u, WorldObject const* viewPoint, boo
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (u->isAlive() && isInvisibleForAlive())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// always seen by owner
|
// always seen by owner
|
||||||
if (GetCharmerOrOwnerGUID()==u->GetGUID())
|
if (GetCharmerOrOwnerGUID()==u->GetGUID())
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -9788,6 +9785,9 @@ bool Unit::isVisibleForOrDetect(Unit const* u, WorldObject const* viewPoint, boo
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (u->isAlive() && isInvisibleForAlive())
|
||||||
|
return false;
|
||||||
|
|
||||||
// non faction visibility non-breakable for non-GMs
|
// non faction visibility non-breakable for non-GMs
|
||||||
if (m_Visibility == VISIBILITY_OFF)
|
if (m_Visibility == VISIBILITY_OFF)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8693"
|
#define REVISION_NR "8694"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue