knyghtmare/War_of_Legends

`weapon_special_daze_event_3` `failed to auto-store $unit at (-999,-999)`

Closed this issue · 0 comments

Game and System Information

  • Wesnoth version: 1.17.25+dev
  • War of Legends version: 1.2.7.35
  • OS: Linux

Description of the bug

This code tries to use $unit.side_number in a side_turn event, resulting in an error message on the console failed to auto-store $unit at (-999,-999)

[event]
id=weapon_special_daze_event_3
name=side turn
first_time_only=no
[event]
name=side turn
delayed_variable_substitution=no
#{DEBUG_MSG "side $|unit.side_number turn started, clearing daze from side $unit.side_number units"}
[modify_unit]
[filter]
side=$unit.side_number

Steps to reproduce the behavior

Follow the steps in wesnoth/wesnoth#8297, having run the game from a terminal window.

Expected behavior

No response

Additional context

The code seems to be copied from UtBS, which now uses this instead:

            [modify_unit]
                [filter]
                    side=$side_number