Author: elvish_hunter
Date: Mon Oct 10 11:19:40 2011
New Revision: 51428
URL: http://svn.gna.org/viewcvs/wesnoth?rev=51428&view=rev
Log:
[harm_unit] cannot longer poison not living units
Modified:
trunk/data/lua/wml-tags.lua
Modified: trunk/data/lua/wml-tags.lua
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/lua/wml-tags.lua?rev=51428&r1=51427&r2=51428&view=diff
==============================================================================
--- trunk/data/lua/wml-tags.lua (original)
+++ trunk/data/lua/wml-tags.lua Mon Oct 10 11:19:40 2011
@@ -767,7 +767,9 @@
end
end
- set_status("poisoned", _"poisoned", _"female^poisoned",
"poison.ogg")
+ if not unit_to_harm.status.not_living then
+ set_status("poisoned", _"poisoned",
_"female^poisoned", "poison.ogg")
+ end
set_status("slowed", _"slowed", _"female^slowed",
"slowed.wav")
set_status("petrified", _"petrified",
_"female^petrified", "petrified.ogg")
set_status("unhealable", _"unhealable",
_"female^unhealable")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits