Changeset 27533

Timestamp:
Feb 10, 2023, 8:19:34 AM (18 months ago)
Author:
Freagarach
Message:

Fix rally point cursor and capturing from spawn.

Introduced in r27399 / rP27399 (the default attack mode switch).

Differential revision: https://code.wildfiregames.com/D4933
Tested by: @Langbart, @phosit, @wowgetoffyourcellphone
Fixes: #6727
(Refs. #6733)

Location:
ps/trunk/binaries/data/mods/public
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/session/unit_actions.js

    r27399 r27533  
    12041204                data.target = targetState.id;
    12051205                data.command = "attack";
    1206                 cursor = "action-attack";
     1206                if (targetState.hitpoints)
     1207                    cursor = "action-attack";
     1208                else if (targetState.capturePoints)
     1209                {
     1210                    cursor = "action-capture";
     1211                    data.allowCapture = true;
     1212                }
     1213                else
     1214                    return false;
    12071215            }
    12081216
  • ps/trunk/binaries/data/mods/public/simulation/helpers/RallyPointCommands.js

    r25421 r27533  
    100100                "entities": spawnedEnts,
    101101                "target": data[i].target,
     102
    102103                "queued": true,
    103104            });
Note: See TracChangeset for help on using the changeset viewer.