mirror of
https://github.com/mangosfour/server.git
synced 2025-12-23 16:37:03 +00:00
[10229] Small cleanup in taxi related checks
This commit is contained in:
parent
6b0746b49b
commit
9381e8680c
4 changed files with 6 additions and 4 deletions
|
|
@ -137,7 +137,7 @@ void HostileReference::updateOnlineStatus()
|
|||
// target is not in flight
|
||||
if(isValid() &&
|
||||
((getTarget()->GetTypeId() != TYPEID_PLAYER || !((Player*)getTarget())->isGameMaster()) ||
|
||||
!getTarget()->hasUnitState(UNIT_STAT_TAXI_FLIGHT)))
|
||||
!getTarget()->IsTaxiFlying()))
|
||||
{
|
||||
Creature* creature = (Creature* ) getSourceUnit();
|
||||
online = getTarget()->isInAccessablePlaceFor(creature);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue