[8689] implement function Unit::isInvisibleForAlive

with that i've implemented all known auras which makes
units invisible for alive.. but that's currently quite hacky
i think best would be if we could set a unit-flag after those auras
getting applied
This commit is contained in:
balrok 2009-10-20 17:57:57 +02:00
parent e990d5c509
commit 46389e4e1c
9 changed files with 31 additions and 12 deletions

View file

@ -2091,6 +2091,9 @@ Creature* Player::GetNPCIfCanInteractWith(uint64 guid, uint32 npcflagmask)
if (!unit->isAlive())
return NULL;
if (isAlive() && unit->isInvisibleForAlive())
return NULL;
// not allow interaction under control, but allow with own pets
if (unit->GetCharmerGUID())
return NULL;