GUI action order ancestralspirittarget wrong string

Hello,

the unit-targeted version of Ancestral Spirit as a parameter in the order action of the GUI trigger editor converts to the wrong string in jass/lua (“ancestralspirittarg” instead of “ancestralspirittarget”), hence it does not successfully issue the order.

Observed on: 1.33.0.19308

Introduction:
The GUI trigger editor in the World Editor has an action “Unit - Issue Order Targeting A Unit”, which does as the name suggests. While clicking the Ancestral Spirit ability as a user in melee games issues an order without a target, there is also a targeted version of the order, so you can precisely select what tauren to revive. The possible entries for orders and what they convert to in GUI are defined in ui\triggerdata.txt in the CASC archive of the game.

Steps:
Place two Spirit Walkers for your player on the map (preferably with low hitpoints).
Remove the requirements from Ancestral Spirit so you do not need to research.
Give yourself burrows or something for enough supply (or use the PointBreak cheat ingame later) because Ancestral Spirit respects the supply limits.
Create a trigger with the aforementioned type of GUI action and a simple event like the player pressing the escape key (aka “Player - Cinematic Skipped”).
Pick Orc Spirit Walker - Ancestral Spirit therein and the two Spirit Walkers as ordered unit/target of the order.
Start the map.
Kill the Spirit Walker you used as target of the order.
Hit the escape key/fire the trigger.

Expected:
The other Spirit Walker should use Ancestral Spirit and revive the dead one.

Actual:
Nothing happens.

Workaround:

Steps:
Go back to the trigger editor.
Convert the trigger to jass/lua (> Edit > Convert to Custom Text).
Note the line

call IssueTargetOrderBJ( gg_unit_ospw_XXXX, "ancestralspirittarg", gg_unit_ospw_YYYY )

Change the string “ancestralspirittarg” to “ancestralspirittarget”.
Start the game again.
Kill the Spirit Walker you used as target of the order.
Hit the escape key/fire the trigger.

Now the dead Spirit Walker should be revived.

Observation:

  1. “ancestralspirittarg” is not the right order string.
  2. it should be “ancestralspirittarget” instead what the GUI parameter converts to.
2 Likes