mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
fixed problems with isInvisbleForAlive
removed redundant check at MoveInLos this check is already done in istargetableForAttack thx to NoFantasy fixed in isVisibleForOrDetect that isInvisbleForAlive wasn't checked.. and therefore all spiritserviceprovider got visible thx to NetSky
This commit is contained in:
parent
ffc2f97d3b
commit
97c94cff56
5 changed files with 9 additions and 8 deletions
|
|
@ -49,7 +49,7 @@ AggressorAI::MoveInLineOfSight(Unit *u)
|
|||
|
||||
if (!m_creature->hasUnitState(UNIT_STAT_STUNNED | UNIT_STAT_DIED) && u->isTargetableForAttack() &&
|
||||
( m_creature->IsHostileTo( u ) /*|| u->getVictim() && m_creature->IsFriendlyTo( u->getVictim() )*/ ) &&
|
||||
u->isInAccessablePlaceFor(m_creature) && !u->isInvisibleForAlive())
|
||||
u->isInAccessablePlaceFor(m_creature))
|
||||
{
|
||||
float attackRadius = m_creature->GetAttackDistance(u);
|
||||
if(m_creature->IsWithinDistInMap(u, attackRadius) && m_creature->IsWithinLOSInMap(u) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue