⚔️ fight_IsCellAligned(cell1, cell2)
Vérifie si deux cellules sont alignées (sur la même ligne ou colonne).
fight_IsCellAligned(cell1, cell2)
FightVérifie si deux cellules sont alignées (sur la même ligne ou colonne).
Paramètres
| Paramètre | Type | Description |
|---|---|---|
cell1 |
int | L'ID de la première cellule |
cell2 |
int | L'ID de la deuxième cellule |
Valeur de retour
bool - true si les cellules sont alignées, false sinon
Exemple
function example_fightiscellaligned()
-- Vérifier si deux cellules sont alignées
local myCell = fight_GetMyCell()
local enemyCell = fight_GetClosestEnemyCell()
if fight_IsCellAligned(myCell, enemyCell) then
fight_SendLogs("Les cellules sont alignées", "Green")
end
end
-- Appeler la fonction
example_fightiscellaligned()