[svn] Remove isVisible function. Check stealth and invisible in canAttack();
Use new remove aura by interrupt flag function. --HG-- branch : trunk
This commit is contained in:
1 parent
fdff7330d2
commit
fd3fcb4612
23 files changed
+128
-128
No files matched your search
@@ -43,7 +43,7 @@ void GuardAI::MoveInLineOfSight(Unit *u)
|
||||
if ( !i_creature.canFly() && i_creature.GetDistanceZ(u) > CREATURE_Z_ATTACK_RANGE )
|
||||
return;
|
||||
|
||||
if( !i_creature.getVictim() && u->isTargetableForAttack() &&
|
||||
if( !i_creature.getVictim() && i_creature.canAttack(u) &&
|
||||
( u->IsHostileToPlayers() || i_creature.IsHostileTo(u) /*|| u->getVictim() && i_creature.IsFriendlyTo(u->getVictim())*/ ) &&
|
||||
u->isInAccessablePlaceFor(&i_creature))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user