> Funções
Retorna o caminho evitando obstáculos entre duas células cell1 e cell2, caso exista, ignorando as células contidas no array ignoredCells .
A célula inicial célula1 nunca faz parte do caminho resultante. A célula célula2 faz parte do caminho resultante se e somente se estiver vazia.
Se não existir nenhum caminho entre as duas células, getPath retornará nulo.
Cuidado, é possível que getPath(cell1, cell2) !== getPath(cell2, cell1).
var path = getPath(getCell(), getCell(enemy))
mark(path, COLOR_RED) // Mostra o caminho entre mim e o inimigo
const path = Field.path(Fight.me.cell, enemy.cell)
Debug.mark(path, Color.RED) // Mostra o caminho entre mim e o inimigo
path = Field.path(Fight.me.cell, enemy.cell)
Debug.mark(path, Color.RED) # Mostra o caminho entre mim e o inimigo
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.