public void ApplyShield(Objects.Unit unit, int handle, float hp) { if (unit == null) lua.ArgumentError(2, "Unit cannot be null"); unit.ApplyShield(handle, hp); }