This commit is contained in:
tenplus1 2023-08-17 07:30:28 +01:00
parent c48821df03
commit 7044e20382
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ local use_mc2 = minetest.get_modpath("mcl_core")
-- Global
mobs = {
mod = "redo",
version = "20230816",
version = "20230817",
translate = S,
invis = minetest.global_exists("invisibility") and invisibility or {},
node_snow = minetest.registered_aliases["mapgen_snow"]
@ -3071,7 +3071,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir, damage)
-- only alert members of same mob and assigned helper
if ent.group_attack == true
and ent.state ~= "attack"
and not (is_player(hitter) and ent.owner == name)
and not (is_player(hitter) and ent.owner == hitter_name)
and (ent.name == self.name or ent.name == self.group_helper) then
ent:do_attack(hitter)
end

View File

@ -346,6 +346,7 @@ Internal Variables
The mob api also has some preset variables and functions that it will remember
for each mob.
'self._cmi_is_mob' Used to determine wether entity is a mobs redo mob when True.
'self.health' contains current health of mob (cannot exceed
self.hp_max)
'self.texture_list' contains list of all mob textures