* Gets the best target for the current unit. * * Stack: 1 - How to determine the best target. * * @param script The script engine to operate on. * @return The encoded index of the best target or 0 if none found. */
| 77 | * @return The encoded index of the best target or 0 if none found. |
| 78 | */ |
| 79 | uint16 Script_Unit_FindBestTarget(ScriptEngine *script) |
| 80 | { |
| 81 | Unit *u; |
| 82 | |
| 83 | u = g_scriptCurrentUnit; |
| 84 | |
| 85 | return Unit_FindBestTargetEncoded(u, STACK_PEEK(1)); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Get the priority a target has for the current unit. |
nothing calls this directly
no test coverage detected