* Test whether there are valid targets in directions, using direction queries. * * @param {Object} o - Dict of arguments for direction query. * @return true if valid targets in at least one direction, else false
(o: object)
| 1096 | * @return true if valid targets in at least one direction, else false |
| 1097 | */ |
| 1098 | testDirection(o: object): boolean { |
| 1099 | const directions = this.testDirections(o); |
| 1100 | |
| 1101 | for (let i = 0, len = directions.length; i < len; i++) { |
| 1102 | if (directions[i] === 1) { |
| 1103 | this.message = ''; |
| 1104 | return true; |
| 1105 | } |
| 1106 | } |
| 1107 | |
| 1108 | this.message = this.game.msg.abilities.noTarget; |
| 1109 | return false; |
| 1110 | } |
| 1111 | |
| 1112 | /** |
| 1113 | * Determine if the ability is being used in the opposite direction to the creature's |
no test coverage detected