URL:
<http://gna.org/bugs/?15203>
Summary: Experience not added if killing unit moved during
killed unit's last breath event
Project: Battle for Wesnoth
Submitted by: anonymissimus
Submitted on: Tuesday 01/26/2010 at 01:10
Category: Bug
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.7.10
Operating System: Linux
_______________________________________________________
Details:
Consider the following code (kill the troll after the units' creations):
[event]
name=turn 2
[unit]
type=Troll
x,y=37,5
side=2
id=Testtroll
hitpoints=1
[/unit]
[unit]
type=Armageddon Drake
x,y=38,5
side=1
[/unit]
[/event]
[event]
name=last breath
[filter]
id=Testtroll
[/filter]
[kill]
id=$second_unit.id
[/kill]
[unstore_unit]
variable=second_unit
x,y=2,2 #commenting this line solves the problem - the
drake gets the
experience then (but I need to move the unit)
[/unstore_unit]
[/event]
It seems that the engine uses $x2, $y2 to determine which unit shall get the
according experience - the id would make more sense and would be more
flexible. (The wml author could change ids to give the experience to some
other unit.)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15203>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs