* Validates the melee range between two units. * @param attacker The attacking unit. * @param target The unit we want to attack. * @param dir Direction to check. * @return True when the range is valid. */
| 2579 | * @return True when the range is valid. |
| 2580 | */ |
| 2581 | bool TileEngine::validMeleeRange(BattleUnit *attacker, BattleUnit *target, int dir) |
| 2582 | { |
| 2583 | return validMeleeRange(attacker->getPosition(), dir, attacker, target, 0); |
| 2584 | } |
| 2585 | |
| 2586 | /** |
| 2587 | * Validates the melee range between a tile and a unit. |
no test coverage detected