> Game Rules
Lasers have a specific type of AoE. They behave differently from regular areas of effect.
The getWeaponArea and getChipArea functions return the constant AREA_LASER_LINE if the weapon or chip has a laser-type area of effect.
A so-called "laser" weapon or chip can only fire in a straight line, so you have to line up with your target, using moveTowardLine and isOnSameLine.
How a laser behaves depends on the targeted cell and on whether there is an obstacle in the direction of the shot.
For a laser with a range of 2 to 7 cells, if there is no obstacle and you target the cell 2 cells away from you, the area will be this one:
All entities in the area take the laser's effects. Lasers are not subject to the same reduction as other areas of effect: every cell takes 100% of the effect.
The cells hit are those within range: in the example, all the cells between 2 and 7 range, 2 and 7 included. If an entity or an obstacle stands between you and the first cell of the area of effect (cell 1 in the example), you cannot shoot.
The same area, from 2 to 7, is hit whichever red cell you target.
Obstacles stop the laser. A laser "keeps going" until it reaches its maximum range or an obstacle.
Still with a range of 2 to 7, if you target the cell 2 cells away and there is an obstacle 5 cells away, the area hit will be this one:
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.