allow status effect hook to trigger on characters
This commit is contained in:
@@ -1237,6 +1237,14 @@ namespace Barotrauma
|
|||||||
if (result.Bool())
|
if (result.Bool())
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (entity is Character character)
|
||||||
|
{
|
||||||
|
var result = new LuaResult(GameMain.Lua.hook.Call("statusEffect.apply." + character.SpeciesName, this, deltaTime, entity, targets, worldPosition));
|
||||||
|
|
||||||
|
if (result.Bool())
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (string luaHooks in luaHook)
|
foreach (string luaHooks in luaHook)
|
||||||
|
|||||||
Reference in New Issue
Block a user