summaryrefslogtreecommitdiff
path: root/src/scripting/luascript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting/luascript.cpp')
-rw-r--r--src/scripting/luascript.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/scripting/luascript.cpp b/src/scripting/luascript.cpp
index d2083952..c88b95fd 100644
--- a/src/scripting/luascript.cpp
+++ b/src/scripting/luascript.cpp
@@ -112,8 +112,17 @@ void LuaScript::processDeathEvent(Being *being)
//TODO: get and push a list of creatures who contributed to killing the
// being. This might be very interesting for scripting quests.
execute();
+}
+
+void LuaScript::processRemoveEvent(Thing *being)
+{
+ prepare("remove_notification");
+ push(being);
+ //TODO: get and push a list of creatures who contributed to killing the
+ // being. This might be very interesting for scripting quests.
+ execute();
- being->removeListener(getScriptDeathListener());
+ being->removeListener(getScriptListener());
}
/**