1
0
Fork 0

targetting: Fixed ghost angle on "surroundings" mode

This commit is contained in:
Michaël Lemaire 2017-10-03 23:18:29 +02:00
parent a305f5a7b3
commit 2e344c498e
2 changed files with 3 additions and 2 deletions

View file

@ -57,6 +57,8 @@ Battle
* Add targetting shortcuts for "previous target", "next enemy" and "next ally"
* Area targetting should include the hotkeyed ship at best (apply exclusion and power limit), not necessarily center on it
* Fix "toggle action" targetting with simulated move not activating the action after the move
* Add shorcut to perform only the "move" part of a move+fire simulation
* Fix delay of shield/hull impact effects (should depend on weapon animation, and ship location)
Ships models and equipments
---------------------------
@ -66,7 +68,6 @@ Ships models and equipments
* Add damage over time effect (tricky to make intuitive)
* Chance to hit should increase with precision
* Add actions with cost dependent of distance (like current move actions)
* Add "cone" targetting
* Add disc targetting (for some jump move actions)
* Add "chain" effects
* Add mines equivalent (drones that apply only at the end)

View file

@ -184,7 +184,7 @@ module TK.SpaceTac.UI {
this.fire_arrow.visible = false;
this.move_ghost.visible = false;
let from = simulation.need_fire ? simulation.move_location : this.ship.location;
let from = (simulation.need_fire && this.mode != ActionTargettingMode.SURROUNDINGS) ? simulation.move_location : this.ship.location;
let angle = Math.atan2(this.target.y - from.y, this.target.x - from.x);
if (simulation.success) {