-
-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stun events leak to unrelated games #7778
Comments
Does it actually break the implementation? If it's really just |
I would assume it was tested when this version of event was created. Whether it works or not doesnt matter for this issue context. |
I don't know the significance of the For the stun-filtered It looks like it comes from the move of the stun lua code into |
As of 1.17.18+dev (71e83f7), I see four additional events over 1.16.9 release:
My guess is the |
Oh right, I totally didn't see that this is just about inspect and not about savefiles. Then I'd say this is not a problem. Maybe hide it from Inspect if it's annoying to have it there? @ProditorMagnus could you please elaborate why you think that this is a problem? |
That's not the literal definition of the event. The event is registered with the Lua API ( Anyway, why exactly is this an issue? The stun event is clearly filtered so that it'll only trigger when a unit with stun attacks. It may be present in all games but it won't ever trigger if you don't have a stun unit. (If it did, that would be a bug.) I'm very tempted to close this as "won't fix". |
I suppose its acceptable then. But when it is global event it should be at least documented that stun is reserved identifier now. |
What do you mean by "reserved identifier" in this context? |
https://wiki.wesnoth.org/AbilitiesWML#The_.5Bspecials.5D_tag Any other tag is valid, but will result in a special that does nothing but report it is there. Since stun will now be active no matter if its unit is in game, it should be listed. |
Ah, that's what you're talking about. Sure, it could be listed there. It should maybe also mention it's defined in stun.lua; that only matters to someone making a custom core, but still. |
Game and System Information
Description of the bug
After starting new game without any units with stun and using inspect, event list includes
Steps to reproduce the behavior
No response
Expected behavior
Event is included to game only when there is reason for it, such as unit placed with that ability.
Additional context
No response
The text was updated successfully, but these errors were encountered: