Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[harm_unit]: added fire_event keys to wml_actions.unstore_unit tables

Fix for bug #20836
  • Loading branch information...
commit 664c7e6859a21781a323f3be74f07d63d370476d 1 parent 6c4f81e
Elvish-Hunter authored June 14, 2013

Showing 1 changed file with 8 additions and 2 deletions. Show diff stats Hide diff stats

  1. 10  data/lua/wml-tags.lua
10  data/lua/wml-tags.lua
@@ -934,14 +934,20 @@ function wml_actions.harm_unit(cfg)
934 934
 			-- this blocks handles the harmed units advancing
935 935
 			if experience ~= false and harmer and unit_to_harm.valid and unit_to_harm.experience >= unit_to_harm.max_experience then
936 936
 				wml_actions.store_unit { { "filter", { id = unit_to_harm.id } }, variable = "Lua_store_unit", kill = true }
937  
-				wml_actions.unstore_unit { variable = "Lua_store_unit", find_vacant = false, advance = true }
  937
+				wml_actions.unstore_unit { variable = "Lua_store_unit",
  938
+								find_vacant = false,
  939
+								advance = true,
  940
+								fire_event = fire_event }
938 941
 				wesnoth.set_variable ( "Lua_store_unit", nil )
939 942
 			end
940 943
 
941 944
 			-- this block handles the harmer advancing
942 945
 			if experience ~= false and harmer and harmer.valid and harmer.experience >= harmer.max_experience then
943 946
 				wml_actions.store_unit { { "filter", { id = harmer.id } }, variable = "Lua_store_unit", kill = true }
944  
-				wml_actions.unstore_unit { variable = "Lua_store_unit", find_vacant = false, advance = true }
  947
+				wml_actions.unstore_unit { variable = "Lua_store_unit",
  948
+								find_vacant = false,
  949
+								advance = true,
  950
+								fire_event = fire_event }
945 951
 				wesnoth.set_variable ( "Lua_store_unit", nil )
946 952
 			end
947 953
 		end

0 notes on commit 664c7e6

Please sign in to comment.
Something went wrong with that request. Please try again.