[10229] Small cleanup in taxi related checks

This commit is contained in:
VladimirMangos 2010-07-20 00:41:01 +04:00
parent 6b0746b49b
commit 9381e8680c
4 changed files with 6 additions and 4 deletions

View file

@ -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);