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

                 Summary: Feeding ability doubles when ghast and necrophage
are in same scenario
                 Project: Battle for Wesnoth
            Submitted by: None
            Submitted on: Wed 19 Jan 2011 01:52:03 AM UTC
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Units
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.9.3
        Operating System: Windows Vista

    _______________________________________________________

Details:

There's a long-standing flaw in the Feeding ability (effectively described at
http://wiki.wesnoth.org/EventWML#A_Trap_for_the_Unwary) that recently got
upgraded to a core bug by the introduction of the Ghast.  If more than one
different unit type with the Feeding ability from core are included in the
same scenario, the effective benefits of the ability are multiplied by the
number of unit types that are involved.

The simplest fix is to add the unit type to the macro, i.e.:

#define ABILITY_FEEDING TYPE
...
    [filter_second]
        ability=feeding
        type={TYPE}
    [/filter_second]

The Ghast and Necrophage would then need to have their {ABILITY_FEEDING} line
changed to {ABILITY_FEEDING (Ghast)} and {ABILITY_FEEDING (Necrophage),
respectively.

Ideally, this problem should be dealt with by a C++ fix, that is, adding an
"id" attribute to the [event] tag that works similarly to the "id" attribute
in [object].  This would fix all cases of the "trap," not just the
event-in-ability case.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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