URL:
<http://gna.org/bugs/?14189>
Summary: [effect] apply_to=attack increase_attacks=-[foo]
can't go below 1 attack
Project: Battle for Wesnoth
Submitted by: elvish_pillager
Submitted on: Tuesday 08/25/2009 at 15:33
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.6
Operating System: Ubunutu GNU/Lin
_______________________________________________________
Details:
If you apply an [object] to a unit with an effect that should decrease the
number of swings on one of its attacks to zero or below, it decreases them to
one instead.
I believe that this behavior was implemented intentionally at a time when
either the AI or something in the Wesnoth engine couldn't handle 0-swing
attacks. If so, this is no longer the case, and there are a variety of
situations in which it makes sense to keep a 0-swing attack - for instance, I
just had to implement a workaround for The High Seas add-on's cannons, which
have swings equal to the number of units operating them (which can be zero.)
I can think of no situations where it makes conceptual sense to rely on the
current behavior.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?14189>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs