URL:
<http://gna.org/bugs/?10152>
Summary: apply_to=new_ability effect applies only the first
tag of the ability
Project: Battle for Wesnoth
Submitted by: mythological
Submitted on: Monday 10/15/2007 at 22:48
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: sapient
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.3.9
Operating System: Windows XP
_______________________________________________________
Details:
In the attached savefile, unit Mithril ( Dwarvish Lord ) 15,16 has a
leadership ability added with [effect]:
[unit]
type=Dwarvish Lord
side=1
x=16
y=16
description=Mithril
user_description= _ "Mithril"
{IS_HERO}
[modifications]
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[object]
silent=yes
[filter]
side=1
[/filter]
[effect]
apply_to=attack
range=melee
increase_damage=+100%
[/effect]
[effect]
apply_to=new_ability
[abilities]
{ABILITY_LEADERSHIP_LEVEL_5}
[/abilities]
[/effect]
[/object]
[/modifications]
[/unit]
In the game, the ability is shown in the sidebar, but the effect of the
leadership is only on level 0 units. That is the first tag of
{ABILITY_LEADERSHIP_LEVEL_5} macro:
#define ABILITY_LEADERSHIP_LEVEL_5
# Canned definition of the Leadership (level 5) ability to be included in
an
# [abilities] clause.
[leadership]
id=leadership
value=125
cumulative=no
name= _ "leadership"
description= _ "Leadership:
This unit can lead friendly units that are next to it, making them fight
better.
Adjacent friendly units of lower level will do more damage in battle. When a
unit adjacent to, of a lower level than, and on the same side as a unit with
Leadership engages in combat, its attacks do 25% more damage times the
difference in their levels."
affect_self=no
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[filter]
level=0
[/filter]
[/affect_adjacent]
[/leadership]
[leadership]
id=leadership
value=100
cumulative=no
affect_self=no
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[filter]
level=1
[/filter]
[/affect_adjacent]
[/leadership]
[leadership]
id=leadership
value=75
cumulative=no
affect_self=no
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[filter]
level=2
[/filter]
[/affect_adjacent]
[/leadership]
[leadership]
id=leadership
value=50
cumulative=no
affect_self=no
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[filter]
level=3
[/filter]
[/affect_adjacent]
[/leadership]
[leadership]
id=leadership
value=25
cumulative=no
affect_self=no
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[filter]
level=4
[/filter]
[/affect_adjacent]
[/leadership]
#enddef
I suspect that there is a bug in [effect] apply_to=new_ability code which
makes only the first tag of the ability added this way apply to the unit.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?10152>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs