Author: rhuvaen
Date: Fri Apr 3 01:15:56 2009
New Revision: 34417
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34417&view=rev
Log:
reworked: fixed bug where spawns would recover all hp lost in initial attacks
in their spawning turn while transferring between AI sides.
Modified:
branches/1.6/data/multiplayer/scenarios/2p_Dark_Forecast.cfg
Modified: branches/1.6/data/multiplayer/scenarios/2p_Dark_Forecast.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/data/multiplayer/scenarios/2p_Dark_Forecast.cfg?rev=34417&r1=34416&r2=34417&view=diff
==============================================================================
--- branches/1.6/data/multiplayer/scenarios/2p_Dark_Forecast.cfg (original)
+++ branches/1.6/data/multiplayer/scenarios/2p_Dark_Forecast.cfg Fri Apr 3
01:15:56 2009
@@ -206,7 +206,17 @@
[/status]
[/unit]
# add the damage the unit had
- {VARIABLE_OP $last_spawn.hitpoints add -$damage}
+ [store_unit]
+ variable=last_spawn
+ kill=yes
+ [filter]
+ side={SIDE2}
+ x,y = $x,$y
+ [/filter]
+ [/store_unit]
+ {VARIABLE hitpoints $last_spawn.hitpoints}
+ {VARIABLE_OP hitpoints add $damage}
+ {VARIABLE last_spawn.hitpoints $hitpoints}
[unstore_unit]
variable=last_spawn
[/unstore_unit]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits