| 14714 | } |
| 14715 | |
| 14716 | bool Entity::isFollowerFreeToPathToPlayer(Stat* myStats) |
| 14717 | { |
| 14718 | Entity* currentTarget = uidToEntity(monsterTarget); |
| 14719 | if ( currentTarget ) |
| 14720 | { |
| 14721 | if ( monsterState == MONSTER_STATE_ATTACK ) |
| 14722 | { |
| 14723 | // fighting something. |
| 14724 | return false; |
| 14725 | } |
| 14726 | else if ( entityDist(this, currentTarget) < TOUCHRANGE * 2 ) |
| 14727 | { |
| 14728 | // in the vicinity of our target |
| 14729 | return false; |
| 14730 | } |
| 14731 | } |
| 14732 | return true; |
| 14733 | } |
| 14734 | |
| 14735 | bool Entity::isInertMimic() const |
| 14736 | { |
no test coverage detected