URL:
  <http://gna.org/bugs/?12428>

                 Summary: Removing the attack that was used in attack_end
causes validation failure.
                 Project: Battle for Wesnoth
            Submitted by: ai0867
            Submitted on: Friday 10/10/2008 at 00:51
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.5.5+svn
        Operating System: Linux

    _______________________________________________________

Details:

When a unit has the attack it just used removed in an attack_end event and
the number of attacks remaining is unequal to 1, a VALIDATE at
src/actions.cpp:283 fails.
Due to the conditional at src/actions.cpp:278, this VALIDATE doesn't trigger
on units that have only a single attack. (left)


Steps to reproduce:
1. Check out a recent trunk
2. Start the test scenario
3. Move a unit to "Special weaponry" (4,6)
4. Attack the warlord with a unit that has at least 2 attacks, using the
anti-warlord weapon.


20081010 00:44:51 error general: An error due to possible invalid WML
occured
The error message is :
An invalid weapon is send, possibly due to the Python AI.

When reporting the bug please include the following error message :
Condition 'defender_weapon == -1' failed at src/actions.cpp:283 in function
'battle_context'.





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?12428>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to