allow status effect hook to trigger on characters

This commit is contained in:
Evil Factory
2022-03-24 14:01:19 -03:00
parent 61b8c132eb
commit 68124fa8a5

View File

@@ -1237,6 +1237,14 @@ namespace Barotrauma
if (result.Bool())
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)